#include <Elementary.h>
#include <dlog.h>
#ifdef WAYLAND
-#include <Ecore_Wayland.h>
+#define EFL_BETA_API_SUPPORT
+#include <Ecore_Wl2.h>
#else
#include <Ecore_X.h>
#endif
{
SCL_DEBUG();
#ifdef WAYLAND
- Ecore_Wl_Window *wl_base_window;
- Ecore_Wl_Window *wl_magnifier_window;
- Ecore_Wl_Window *wl_window;
+ Ecore_Wl2_Window *wl_base_window;
+ Ecore_Wl2_Window *wl_magnifier_window;
+ Ecore_Wl2_Window *wl_window;
#endif
CSCLController *controller = CSCLController::get_instance();
sclboolean is_scl_window = FALSE;
#ifdef WAYLAND
sclboolean is_magnifier_window = FALSE;
- wl_base_window = elm_win_wl_window_get(static_cast<Evas_Object*>(windows->get_base_window()));
- wl_magnifier_window = (elm_win_wl_window_get(static_cast<Evas_Object*>(windows->get_magnifier_window())));
- if (wl_base_window && (unsigned int)ecore_wl_window_id_get(wl_base_window) == ev->window) {
+ wl_base_window = (Ecore_Wl2_Window*)elm_win_wl_window_get(static_cast<Evas_Object*>(windows->get_base_window()));
+ wl_magnifier_window = (Ecore_Wl2_Window*)(elm_win_wl_window_get(static_cast<Evas_Object*>(windows->get_magnifier_window())));
+ if (wl_base_window && (unsigned int)ecore_wl2_window_id_get(wl_base_window) == ev->window) {
is_scl_window = TRUE;
- } else if (wl_magnifier_window && (unsigned int)ecore_wl_window_id_get(wl_magnifier_window) == ev->window) {
+ } else if (wl_magnifier_window && (unsigned int)ecore_wl2_window_id_get(wl_magnifier_window) == ev->window) {
is_scl_window = TRUE;
is_magnifier_window = TRUE;
#else
if (window_context->is_virtual) {
is_scl_window = TRUE;
#ifdef WAYLAND
- } else if ((wl_window = elm_win_wl_window_get(static_cast<Evas_Object*>(window)))) {
- if ((unsigned int)ecore_wl_window_id_get(wl_window) == ev->window)
+ } else if ((wl_window = (Ecore_Wl2_Window*)elm_win_wl_window_get(static_cast<Evas_Object*>(window)))) {
+ if ((unsigned int)ecore_wl2_window_id_get(wl_window) == ev->window)
is_scl_window = TRUE;
#else
} else if (elm_win_xwindow_get(static_cast<Evas_Object*>(window)) == ev->window) {
#ifdef WAYLAND
int root_x = 0;
int root_y = 0;
- Ecore_Wl_Window *wl_magnifier_window =
- (elm_win_wl_window_get(static_cast<Evas_Object*>(windows->get_magnifier_window())));
+ Ecore_Wl2_Window *wl_magnifier_window =
+ (Ecore_Wl2_Window*)(elm_win_wl_window_get(static_cast<Evas_Object*>(windows->get_magnifier_window())));
if (wl_magnifier_window &&
- (unsigned int)ecore_wl_window_id_get(wl_magnifier_window) == ev->window) {
+ (unsigned int)ecore_wl2_window_id_get(wl_magnifier_window) == ev->window) {
SclRectangle magnifier_rect = { 0, 0, 0, 0 };
if (get_window_rect(windows->get_magnifier_window(), &magnifier_rect)) {
root_x = ev->x + magnifier_rect.x;
int root_x = 0;
int root_y = 0;
- Ecore_Wl_Window *wl_base_window =
- elm_win_wl_window_get(static_cast<Evas_Object*>(windows->get_base_window()));
- Ecore_Wl_Window *wl_magnifier_window =
- (elm_win_wl_window_get(static_cast<Evas_Object*>(windows->get_magnifier_window())));
- if (wl_base_window && (unsigned int)ecore_wl_window_id_get(wl_base_window) == ev->window) {
+ Ecore_Wl2_Window *wl_base_window =
+ (Ecore_Wl2_Window*)elm_win_wl_window_get(static_cast<Evas_Object*>(windows->get_base_window()));
+ Ecore_Wl2_Window *wl_magnifier_window =
+ (Ecore_Wl2_Window*)(elm_win_wl_window_get(static_cast<Evas_Object*>(windows->get_magnifier_window())));
+ if (wl_base_window && (unsigned int)ecore_wl2_window_id_get(wl_base_window) == ev->window) {
SclRectangle base_rect;
if (get_window_rect(windows->get_base_window(), &base_rect)) {
root_x = ev->x + base_rect.x;
root_y = ev->y + base_rect.y;
}
- } else if (wl_magnifier_window && (unsigned int)ecore_wl_window_id_get(wl_magnifier_window) == ev->window) {
+ } else if (wl_magnifier_window && (unsigned int)ecore_wl2_window_id_get(wl_magnifier_window) == ev->window) {
SclRectangle magnifier_rect = { 0, 0, 0, 0 };
if (get_window_rect(windows->get_magnifier_window(), &magnifier_rect)) {
root_x = ev->x + magnifier_rect.x;
pressed[loop] = TRUE;
Ecore_Event_Mouse_Button evt;
#ifdef WAYLAND
- Ecore_Wl_Window *wl_base_window;
- wl_base_window = elm_win_wl_window_get(static_cast<Evas_Object*>(windows->get_base_window()));
+ Ecore_Wl2_Window *wl_base_window;
+ wl_base_window = (Ecore_Wl2_Window*)elm_win_wl_window_get(static_cast<Evas_Object*>(windows->get_base_window()));
if (wl_base_window)
- evt.window = (unsigned int)ecore_wl_window_id_get(wl_base_window);
+ evt.window = (unsigned int)ecore_wl2_window_id_get(wl_base_window);
#else
evt.window = elm_win_xwindow_get(static_cast<Evas_Object*>(windows->get_base_window()));
#endif
pressed[loop] = FALSE;
Ecore_Event_Mouse_Button evt;
#ifdef WAYLAND
- Ecore_Wl_Window *wl_base_window;
- wl_base_window = elm_win_wl_window_get(static_cast<Evas_Object*>(windows->get_base_window()));
+ Ecore_Wl2_Window *wl_base_window;
+ wl_base_window = (Ecore_Wl2_Window*)elm_win_wl_window_get(static_cast<Evas_Object*>(windows->get_base_window()));
if (wl_base_window)
- evt.window = (unsigned int)ecore_wl_window_id_get(wl_base_window);
+ evt.window = (unsigned int)ecore_wl2_window_id_get(wl_base_window);
#else
evt.window = elm_win_xwindow_get(static_cast<Evas_Object*>(windows->get_base_window()));
#endif
if (pressed[loop] == TRUE) {
Ecore_Event_Mouse_Move evt;
#ifdef WAYLAND
- Ecore_Wl_Window *wl_base_window;
- wl_base_window = elm_win_wl_window_get(static_cast<Evas_Object*>(windows->get_base_window()));
+ Ecore_Wl2_Window *wl_base_window;
+ wl_base_window = (Ecore_Wl2_Window*)elm_win_wl_window_get(static_cast<Evas_Object*>(windows->get_base_window()));
if (wl_base_window)
- evt.window = (unsigned int)ecore_wl_window_id_get(wl_base_window);
+ evt.window = (unsigned int)ecore_wl2_window_id_get(wl_base_window);
#else
evt.window = elm_win_xwindow_get(static_cast<Evas_Object*>(windows->get_base_window()));
#endif