removed HAVE_WAYLAND_ONLY, E_COMP_WL, E_COMP_X and unnecessary Ecore_Wayland.h. 86/72686/1
authorGwanglim Lee <gl77.lee@samsung.com>
Tue, 31 May 2016 07:45:08 +0000 (16:45 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Thu, 2 Jun 2016 05:57:31 +0000 (14:57 +0900)
Change-Id: I68bd1cc91cb84d2652fd052152a952cb9adb2a0e

28 files changed:
src/bin/Makefile.mk
src/bin/e.h
src/bin/e_bindings.c
src/bin/e_bindings.h
src/bin/e_client.c
src/bin/e_client.h
src/bin/e_comp.c
src/bin/e_comp.h
src/bin/e_comp_wl.c
src/bin/e_comp_wl.h
src/bin/e_comp_wl_data.c
src/bin/e_comp_wl_input.c
src/bin/e_comp_wl_tbm.c
src/bin/e_desk.c
src/bin/e_dpms.c
src/bin/e_hints.c
src/bin/e_includes.h
src/bin/e_info_server.c
src/bin/e_info_server.h
src/bin/e_pointer.c
src/bin/e_remember.c
src/bin/e_signals.c
src/bin/e_test_helper.c
src/bin/e_win.c
src/modules/bufferqueue/e_mod_main.c
src/modules/wl_desktop_shell/e_mod_input_panel.c
src/modules/wl_desktop_shell/e_mod_main.c
src/modules/wl_desktop_shell/e_scaler.c

index 8441b739092fa8200297c9a25f124cb67eb08f85..43fc5f483aad7cc0179989dd65d4a39fe4ce1937 100644 (file)
@@ -81,10 +81,7 @@ src/bin/e_zone.h \
 src/bin/e_util_transform.h \
 src/bin/e_comp_hwc.h \
 src/bin/e_comp_screen.h \
-src/bin/e_info_protocol.h
-
-if HAVE_WAYLAND
-ENLIGHTENMENTHEADERS += \
+src/bin/e_info_protocol.h \
 src/bin/e_uuid_store.h \
 src/bin/e_comp_wl_data.h \
 src/bin/e_comp_wl_input.h \
@@ -95,8 +92,6 @@ ENLIGHTENMENTHEADERS += \
 src/bin/e_comp_wl_tbm.h
 endif
 
-endif
-
 enlightenment_src = \
 src/bin/e_actions.c \
 src/bin/e_bg.c \
@@ -153,10 +148,6 @@ src/bin/e_util_transform.c \
 src/bin/e_comp_hwc.c \
 src/bin/e_output.c \
 src/bin/e_info_protocol.c \
-$(ENLIGHTENMENTHEADERS)
-
-if HAVE_WAYLAND
-enlightenment_src += \
 src/bin/e_uuid_store.c \
 src/bin/session-recovery-protocol.c \
 src/bin/session-recovery-server-protocol.h \
@@ -164,15 +155,14 @@ src/bin/e_comp_wl_screenshooter_server.c \
 src/bin/e_comp_wl_screenshooter_server.h \
 src/bin/e_comp_wl_data.c \
 src/bin/e_comp_wl_input.c \
-src/bin/e_comp_wl.c
+src/bin/e_comp_wl.c \
+$(ENLIGHTENMENTHEADERS)
 
 if HAVE_WAYLAND_TBM
 enlightenment_src += \
 src/bin/e_comp_wl_tbm.c
 endif
 
-endif
-
 src_bin_enlightenment_CPPFLAGS = $(E_CPPFLAGS) -DEFL_BETA_API_SUPPORT -DEFL_EO_API_SUPPORT -DE_LOGGING=1 @WAYLAND_CFLAGS@ $(TTRACE_CFLAGS) $(DLOG_CFLAGS)
 if HAVE_WAYLAND_TBM
 src_bin_enlightenment_CPPFLAGS += @WAYLAND_TBM_CFLAGS@ @ECORE_DRM_CFLAGS@
index 62a29f0397532daad1527e07c532c6832517a237..5524ada2815a78ba404e45f2bec1cbd2a0b9e3f5 100644 (file)
@@ -113,11 +113,6 @@ void *alloca (size_t);
 #  define TRACE_INPUT_END()
 # endif
 
-/* egl.h must come before Evas_GL.h otherwise they will conflict */
-//# ifdef HAVE_WAYLAND_EGL
-//#  include <EGL/egl.h>
-//# endif
-
 # include <setjmp.h>
 # include <Eo.h>
 # include <Eina.h>
@@ -131,11 +126,7 @@ void *alloca (size_t);
 # include <Edje.h>
 # include <Eldbus.h>
 # include <Eio.h>
-
-# ifdef HAVE_WAYLAND
-#  include <Ecore_Wayland.h>
-#  include <uuid.h>
-# endif
+# include <uuid.h>
 
 # ifdef E_API
 #  undef E_API
index d3bde9abc973fdc5603b719a05bffbc862f9bc8c..ef703c423a516d0898271aac77b65ec15ad90fff 100644 (file)
@@ -225,52 +225,6 @@ e_bindings_mouse_del(E_Binding_Context ctxt, int button, E_Binding_Modifier mod,
      }
 }
 
-E_API void
-e_bindings_mouse_grab(E_Binding_Context ctxt, Ecore_X_Window win)
-{
-   E_Binding_Mouse *binding;
-   Eina_List *l;
-
-   EINA_LIST_FOREACH(mouse_bindings, l, binding)
-     {
-        if (_e_bindings_context_match(binding->ctxt, ctxt))
-          {
-#ifndef HAVE_WAYLAND_ONLY
-             ecore_x_window_button_grab(win, binding->button,
-                                        ECORE_X_EVENT_MASK_MOUSE_DOWN |
-                                        ECORE_X_EVENT_MASK_MOUSE_UP |
-                                        ECORE_X_EVENT_MASK_MOUSE_MOVE,
-                                        e_bindings_modifiers_to_ecore_convert(binding->mod),
-                                        binding->any_mod);
-#endif
-          }
-     }
-#ifdef HAVE_WAYLAND_ONLY
-   (void)win;
-#endif
-}
-
-E_API void
-e_bindings_mouse_ungrab(E_Binding_Context ctxt, Ecore_X_Window win)
-{
-   E_Binding_Mouse *binding;
-   Eina_List *l;
-
-   EINA_LIST_FOREACH(mouse_bindings, l, binding)
-     {
-        if (_e_bindings_context_match(binding->ctxt, ctxt))
-          {
-#ifndef HAVE_WAYLAND_ONLY
-             ecore_x_window_button_ungrab(win, binding->button,
-                                          e_bindings_modifiers_to_ecore_convert(binding->mod), binding->any_mod);
-#endif
-          }
-     }
-#ifdef HAVE_WAYLAND_ONLY
-   (void)win;
-#endif
-}
-
 E_API E_Action *
 e_bindings_mouse_button_find(E_Binding_Context ctxt, E_Binding_Event_Mouse_Button *ev, E_Binding_Mouse **bind_ret)
 {
@@ -442,54 +396,6 @@ e_bindings_key_del(E_Binding_Context ctxt, const char *key, E_Binding_Modifier m
      }
 }
 
-E_API void
-e_bindings_key_grab(E_Binding_Context ctxt, Ecore_X_Window win)
-{
-   E_Binding_Key *binding;
-   Eina_List *l;
-
-   EINA_LIST_FOREACH(key_bindings, l, binding)
-     {
-        if (_e_bindings_context_match(binding->ctxt, ctxt))
-          {
-             if (e_bindings_key_allowed(binding->key))
-               {
-#ifndef HAVE_WAYLAND_ONLY
-                  ecore_x_window_key_grab(win, binding->key,
-                                          e_bindings_modifiers_to_ecore_convert(binding->mod), binding->any_mod);
-#endif
-               }
-          }
-     }
-#ifdef HAVE_WAYLAND_ONLY
-   (void)win;
-#endif
-}
-
-E_API void
-e_bindings_key_ungrab(E_Binding_Context ctxt, Ecore_X_Window win)
-{
-   E_Binding_Key *binding;
-   Eina_List *l;
-
-   EINA_LIST_FOREACH(key_bindings, l, binding)
-     {
-        if (_e_bindings_context_match(binding->ctxt, ctxt))
-          {
-             if (e_bindings_key_allowed(binding->key))
-               {
-#ifndef HAVE_WAYLAND_ONLY
-                  ecore_x_window_key_ungrab(win, binding->key,
-                                            e_bindings_modifiers_to_ecore_convert(binding->mod), binding->any_mod);
-#endif
-               }
-          }
-     }
-#ifdef HAVE_WAYLAND_ONLY
-   (void)win;
-#endif
-}
-
 E_API E_Action *
 e_bindings_key_down_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_Event_Key *ev)
 {
@@ -1031,83 +937,6 @@ e_bindings_wheel_del(E_Binding_Context ctxt, int direction, int z, E_Binding_Mod
      }
 }
 
-E_API void
-e_bindings_wheel_grab(E_Binding_Context ctxt, Ecore_X_Window win)
-{
-   E_Binding_Wheel *binding;
-   Eina_List *l;
-
-   EINA_LIST_FOREACH(wheel_bindings, l, binding)
-     {
-        if (_e_bindings_context_match(binding->ctxt, ctxt))
-          {
-             int button = 0;
-
-             if (binding->direction == 0)
-               {
-                  if (binding->z < 0) button = 4;
-                  else if (binding->z > 0)
-                    button = 5;
-               }
-             else if (binding->direction == 1)
-               {
-                  if (binding->z < 0) button = 6;
-                  else if (binding->z > 0)
-                    button = 7;
-               }
-             if (button != 0)
-               {
-#ifndef HAVE_WAYLAND_ONLY
-                  ecore_x_window_button_grab(win, button,
-                                             ECORE_X_EVENT_MASK_MOUSE_DOWN,
-                                             e_bindings_modifiers_to_ecore_convert(binding->mod), binding->any_mod);
-#endif
-               }
-          }
-     }
-#ifdef HAVE_WAYLAND_ONLY
-   (void)win;
-#endif
-}
-
-E_API void
-e_bindings_wheel_ungrab(E_Binding_Context ctxt, Ecore_X_Window win)
-{
-   E_Binding_Wheel *binding;
-   Eina_List *l;
-
-   EINA_LIST_FOREACH(wheel_bindings, l, binding)
-     {
-        if (_e_bindings_context_match(binding->ctxt, ctxt))
-          {
-             int button = 0;
-
-             if (binding->direction == 0)
-               {
-                  if (binding->z < 0) button = 4;
-                  else if (binding->z > 0)
-                    button = 5;
-               }
-             else if (binding->direction == 1)
-               {
-                  if (binding->z < 0) button = 6;
-                  else if (binding->z > 0)
-                    button = 7;
-               }
-             if (button != 0)
-               {
-#ifndef HAVE_WAYLAND_ONLY
-                  ecore_x_window_button_ungrab(win, button,
-                                               e_bindings_modifiers_to_ecore_convert(binding->mod), binding->any_mod);
-#endif
-               }
-          }
-     }
-#ifdef HAVE_WAYLAND_ONLY
-   (void)win;
-#endif
-}
-
 E_API E_Action *
 e_bindings_wheel_find(E_Binding_Context ctxt, E_Binding_Event_Wheel *ev, E_Binding_Wheel **bind_ret)
 {
index dddb1c1d3e4c68871c98d1da1f495275645b6fcc..06436800c9b361270fea21ccfdf61780a9c9b335 100644 (file)
@@ -134,8 +134,6 @@ E_API void        e_bindings_reset(void);
 
 E_API void        e_bindings_mouse_add(E_Binding_Context ctxt, int button, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
 E_API void        e_bindings_mouse_del(E_Binding_Context ctxt, int button, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
-E_API void        e_bindings_mouse_grab(E_Binding_Context ctxt, Ecore_X_Window win);
-E_API void        e_bindings_mouse_ungrab(E_Binding_Context ctxt, Ecore_X_Window win);
 E_API E_Action   *e_bindings_mouse_button_find(E_Binding_Context ctxt, E_Binding_Event_Mouse_Button *ev, E_Binding_Mouse **bind_ret);
 E_API E_Action   *e_bindings_mouse_down_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Binding_Event_Mouse_Button *ev);
 E_API E_Action   *e_bindings_mouse_down_evas_event_handle(E_Binding_Context ctxt, E_Object *obj, Evas_Event_Mouse_Down *ev);
@@ -148,8 +146,6 @@ E_API void        e_bindings_key_add(E_Binding_Context ctxt, const char *key, E_
 E_API void        e_bindings_key_del(E_Binding_Context ctxt, const char *key, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
 E_API E_Binding_Key *e_bindings_key_get(const char *action);
 E_API E_Binding_Key *e_bindings_key_find(const char *key, E_Binding_Modifier mod, int any_mod);
-E_API void        e_bindings_key_grab(E_Binding_Context ctxt, Ecore_X_Window win);
-E_API void        e_bindings_key_ungrab(E_Binding_Context ctxt, Ecore_X_Window win);
 E_API E_Action   *e_bindings_key_down_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_Event_Key *ev);
 E_API E_Action   *e_bindings_key_up_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_Event_Key *ev);
 E_API E_Action   *e_bindings_key_down_event_find(E_Binding_Context ctxt, Ecore_Event_Key *ev);
@@ -174,8 +170,6 @@ E_API E_Action   *e_bindings_signal_handle(E_Binding_Context ctxt, E_Object *obj
 
 E_API void        e_bindings_wheel_add(E_Binding_Context ctxt, int direction, int z, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
 E_API void        e_bindings_wheel_del(E_Binding_Context ctxt, int direction, int z, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
-E_API void        e_bindings_wheel_grab(E_Binding_Context ctxt, Ecore_X_Window win);
-E_API void        e_bindings_wheel_ungrab(E_Binding_Context ctxt, Ecore_X_Window win);
 E_API E_Action   *e_bindings_wheel_find(E_Binding_Context ctxt, E_Binding_Event_Wheel *ev, E_Binding_Wheel **bind_ret);
 E_API E_Action   *e_bindings_wheel_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Binding_Event_Wheel *ev);
 E_API E_Action   *e_bindings_wheel_evas_event_handle(E_Binding_Context ctxt, E_Object *obj, Evas_Event_Mouse_Wheel *ev);
index 88c81f04880ff4989e1249689dd78e6bc08295db..a15f76ceff9a03ad55128557ed3efde7b5062023 100644 (file)
@@ -25,9 +25,7 @@ E_API int E_EVENT_CLIENT_ROTATION_CHANGE_CANCEL = -1;
 E_API int E_EVENT_CLIENT_ROTATION_CHANGE_END = -1;
 #endif
 E_API int E_EVENT_CLIENT_VISIBILITY_CHANGE = -1;
-#ifdef HAVE_WAYLAND_ONLY
 E_API int E_EVENT_CLIENT_BUFFER_CHANGE = -1;
-#endif
 
 static Eina_Hash *clients_hash[E_PIXMAP_TYPE_MAX] = {NULL}; // pixmap->client
 
@@ -817,9 +815,7 @@ _e_client_free(E_Client *ec)
    E_OBJECT(ec)->references--;
    ELOG("CLIENT FREE", ec->pixmap, ec);
 
-#ifdef HAVE_WAYLAND
    e_uuid_store_entry_del(ec->uuid);
-#endif
 
    free(ec);
 }
@@ -1987,7 +1983,6 @@ _e_client_aux_hint_eval(E_Client *ec)
 {
    if (!ec) return;
 
-#ifdef HAVE_WAYLAND_ONLY
    E_Comp_Wl_Client_Data *cdata = (E_Comp_Wl_Client_Data*)ec->comp_data;
    Eina_List *l, *ll;
    E_Comp_Wl_Aux_Hint *hint;
@@ -2010,7 +2005,6 @@ _e_client_aux_hint_eval(E_Client *ec)
           }
         cdata->aux_hint.changed = 0;
      }
-#endif
 }
 
 static void
@@ -2590,7 +2584,6 @@ _e_client_type_get(E_Client *ec)
    return ec->client_type;
 }
 
-#ifdef HAVE_WAYLAND_ONLY
 static void
 _e_client_transform_sub_apply(E_Client *ec, E_Client *epc, double zoom)
 {
@@ -2631,7 +2624,6 @@ _e_client_transform_sub_apply(E_Client *ec, E_Client *epc, double zoom)
 
    evas_map_free(map);
 }
-#endif
 
 static void
 _e_client_visibility_zone_calculate(E_Zone *zone)
@@ -2649,9 +2641,7 @@ _e_client_visibility_zone_calculate(E_Zone *zone)
    int w = 0;
    int h = 0;
    const int edge = 1;
-#ifdef HAVE_WAYLAND_ONLY
    E_Comp_Wl_Client_Data *cdata;
-#endif
    Eina_List *changed_list = NULL;
    Eina_List *l = NULL;
 
@@ -2680,11 +2670,9 @@ _e_client_visibility_zone_calculate(E_Zone *zone)
         if (ec->zone != zone) continue;
         if (!ec->frame) continue;
         if (ec->visibility.skip) continue;
-#ifdef HAVE_WAYLAND_ONLY
         /* if ec is subsurface, skip this */
         cdata = (E_Comp_Wl_Client_Data *)ec->comp_data;
         if (cdata && cdata->sub.data) continue;
-#endif
 
         /* TODO: need to check whether window intersects with entire screen, not zone. */
         /* if (!E_INTERSECTS(ec->x, ec->y, ec->w, ec->h, zone->x, zone->y, zone->w, zone->h)) continue; */
@@ -2908,7 +2896,6 @@ _e_client_transform_core_check_change(E_Client *ec)
      }
 
    // check parent matrix change
-#ifdef HAVE_WAYLAND_ONLY
    if (ec->comp_data)
      {
         E_Comp_Wl_Client_Data *cdata = (E_Comp_Wl_Client_Data*)ec->comp_data;
@@ -2936,7 +2923,6 @@ _e_client_transform_core_check_change(E_Client *ec)
                }
           }
      }
-#endif
 
    return check;
 }
@@ -3020,7 +3006,6 @@ _e_client_transform_core_vertices_apply(E_Client *ec EINA_UNUSED, Evas_Object *o
 static void
 _e_client_transform_core_sub_update(E_Client *ec, E_Util_Transform_Rect_Vertex *vertices)
 {
-#ifdef HAVE_WAYLAND_ONLY
    Eina_List *l;
    E_Client *subc;
    E_Comp_Wl_Client_Data *cdata;
@@ -3038,7 +3023,6 @@ _e_client_transform_core_sub_update(E_Client *ec, E_Util_Transform_Rect_Vertex *
 
    EINA_LIST_FOREACH(cdata->sub.below_list, l, subc)
       e_client_transform_core_update(subc);
-#endif
 }
 
 E_API void
@@ -3226,9 +3210,7 @@ e_client_init(void)
    E_EVENT_CLIENT_ROTATION_CHANGE_END = ecore_event_type_new();
 #endif
    E_EVENT_CLIENT_VISIBILITY_CHANGE = ecore_event_type_new();
-#ifdef HAVE_WAYLAND_ONLY
    E_EVENT_CLIENT_BUFFER_CHANGE = ecore_event_type_new();
-#endif
 
    return (!!clients_hash[1]);
 }
@@ -3278,9 +3260,7 @@ e_client_new(E_Pixmap *cp, int first_map, int internal)
    if (!ec) return NULL;
    e_object_del_func_set(E_OBJECT(ec), E_OBJECT_CLEANUP_FUNC(_e_client_del));
 
-#ifdef HAVE_WAYLAND
    uuid_generate(ec->uuid);
-#endif
 
    ec->focus_policy_override = E_FOCUS_LAST;
    ec->w = 1;
index a7535c30de24e4e187265f440d99ee569b747ddb..8d2a1a3b9eef856b926844992522a45a5c8a7683 100644 (file)
@@ -229,10 +229,6 @@ typedef void (*E_Client_Hook_Cb)(void *data, E_Client *ec);
 typedef void (*E_Client_Layout_Cb)(void);
 #else
 
-#ifndef HAVE_WAYLAND_ONLY
-# include <Ecore_X.h>
-#endif
-
 #define E_CLIENT_TYPE (int)0xE0b01002
 
 struct E_Event_Client
@@ -394,13 +390,6 @@ struct E_Client
       Ecore_Window            window_group;
       Ecore_Window            transient_for;
       Ecore_Window            client_leader;
-#ifndef HAVE_WAYLAND_ONLY
-      Ecore_X_Window_State_Hint initial_state;
-      Ecore_X_Window_State_Hint state;
-      Ecore_X_Pixmap            icon_pixmap;
-      Ecore_X_Pixmap            icon_mask;
-      Ecore_X_Gravity           gravity;
-#endif
       Eina_Stringshare         *window_role;
       unsigned char             take_focus : 1;
       unsigned char             accepts_focus : 1;
@@ -432,11 +421,6 @@ struct E_Client
    /* MWM */
    struct
    {
-#ifndef HAVE_WAYLAND_ONLY
-      Ecore_X_MWM_Hint_Func  func;
-      Ecore_X_MWM_Hint_Decor decor;
-      Ecore_X_MWM_Hint_Input input;
-#endif
       unsigned char          exists : 1;
       unsigned char          borderless : 1;
       struct
@@ -637,9 +621,6 @@ struct E_Client
          unsigned char state : 1;
          unsigned char vkbd : 1;
       } fetch;
-#ifndef HAVE_WAYLAND_ONLY
-      Ecore_X_Virtual_Keyboard_State state;
-#endif
       unsigned char                  have_property : 1;
       unsigned char                  vkbd : 1;
 #ifdef _F_E_VIRTUAL_KEYBOARD_TYPE_
@@ -816,9 +797,7 @@ struct E_Client
    Eina_Bool post_lower : 1;
 
    Eina_Bool on_post_updates : 1; // client is on the post update list
-#ifdef HAVE_WAYLAND
    uuid_t uuid;
-#endif
 
    int client_type; //e_client_type
 
@@ -917,9 +896,7 @@ E_API extern int E_EVENT_CLIENT_ROTATION_CHANGE_CANCEL;
 E_API extern int E_EVENT_CLIENT_ROTATION_CHANGE_END;
 #endif
 E_API extern int E_EVENT_CLIENT_VISIBILITY_CHANGE;
-#ifdef HAVE_WAYLAND_ONLY
 E_API extern int E_EVENT_CLIENT_BUFFER_CHANGE;
-#endif
 
 EINTERN void e_client_idler_before(void);
 EINTERN Eina_Bool e_client_init(void);
@@ -1113,22 +1090,14 @@ static inline Ecore_Window
 e_client_util_pwin_get(const E_Client *ec)
 {
    if (!ec->pixmap) return 0;
-#if defined(HAVE_WAYLAND) && !defined(HAVE_WAYLAND_ONLY)
-   return e_pixmap_parent_window_get(e_comp_x_client_pixmap_get(ec));
-#else
    return e_pixmap_parent_window_get(ec->pixmap);
-#endif
 }
 
 static inline Ecore_Window
 e_client_util_win_get(const E_Client *ec)
 {
    if (!ec->pixmap) return 0;
-#if defined(HAVE_WAYLAND) && !defined(HAVE_WAYLAND_ONLY)
-   return e_pixmap_window_get(e_comp_x_client_pixmap_get(ec));
-#else
    return e_pixmap_window_get(ec->pixmap);
-#endif
 }
 
 static inline Eina_Bool
index d85fc6b2f7c452d8af72f32925edfdd9358eb69e..fea4c41d0682ff86c137f5034ac841aae9d7a35e 100644 (file)
@@ -1,7 +1,4 @@
 #include "e.h"
-#ifdef HAVE_WAYLAND
-# include "e_comp_wl.h"
-#endif
 
 #ifdef HAVE_HWC
 # include "e_comp_hwc.h"
@@ -915,13 +912,6 @@ _e_comp_shapes_update_job(void *d EINA_UNUSED)
    INF("---------------------");
 #endif
 
-#ifndef HAVE_WAYLAND_ONLY
-   Ecore_Window win;
-   if (e_comp->comp_type == E_PIXMAP_TYPE_X)
-     win = e_comp->win;
-   else
-     win = e_comp->cm_selection;
-#endif
    E_FREE_LIST(e_comp->debug_rects, evas_object_del);
    tb = eina_tiler_new(e_comp->w, e_comp->h);
    EINA_SAFETY_ON_NULL_GOTO(tb, tb_fail);
@@ -983,10 +973,6 @@ _e_comp_shapes_update_job(void *d EINA_UNUSED)
 #endif
      }
 
-#ifndef HAVE_WAYLAND_ONLY
-   ecore_x_window_shape_input_rectangles_set(win, (Ecore_X_Rectangle*)exr, i);
-#endif
-
 exr_fail:
    free(exr);
 ti_fail:
index 15a6efd3db10b14c4b345bcb140668e761a50f75..d88aad8d101346821f347ad2af111882bda18989 100644 (file)
@@ -1,21 +1,7 @@
 #ifdef E_TYPEDEFS
-typedef struct _E_Comp E_Comp;
-
-#ifdef E_COMP_WL
-typedef struct _E_Comp_Wl_Client_Data E_Comp_Client_Data;
-#endif
-typedef struct _E_Comp_Wl_Data E_Comp_Wl_Data;
-
-#ifdef E_COMP_X
-typedef struct _E_Comp_X_Client_Data E_Comp_Client_Data;
-#endif
-typedef struct _E_Comp_X_Data E_Comp_X_Data;
-
-#if !defined(E_COMP_WL) && !defined(E_COMP_X)
-typedef struct _E_Comp_Client_Data E_Comp_Client_Data;
-#endif
-
-typedef struct _E_Comp_Demo_Style_Item E_Comp_Demo_Style_Item;
+typedef struct _E_Comp                       E_Comp;
+typedef struct _E_Comp_Wl_Client_Data        E_Comp_Client_Data;
+typedef struct _E_Comp_Wl_Data               E_Comp_Wl_Data;
 typedef struct _E_Comp_Connected_Client_Info E_Comp_Connected_Client_Info;
 
 # define E_COMP_TYPE (int) 0xE0b01003
@@ -102,7 +88,6 @@ struct _E_Comp
 
    Eina_List *pre_render_cbs; /* E_Comp_Cb */
 
-   E_Comp_X_Data *x_comp_data;
    E_Comp_Wl_Data *wl_comp_data;
 
    E_Pixmap_Type comp_type; //for determining X/Wayland/
@@ -178,17 +163,6 @@ struct _E_Comp
    Eina_List      *launchscrns; // list of dummy clients for launchscreen image.
 };
 
-
-struct _E_Comp_Demo_Style_Item
-{
-   Evas_Object *preview;
-   Evas_Object *frame;
-   Evas_Object *livethumb;
-   Evas_Object *layout;
-   Evas_Object *border;
-   Evas_Object *client;
-};
-
 struct _E_Comp_Connected_Client_Info
 {
    const char *name;
index 1d32ca31c72f774f6b95d56eaadf116359c8dc24..be76378aaaccae3bd806968b9781dee72e6e0cdc 100644 (file)
@@ -1,4 +1,3 @@
-#define E_COMP_WL
 #include "e.h"
 #include "e_comp_wl_screenshooter_server.h"
 
@@ -2189,10 +2188,6 @@ _e_comp_wl_surface_state_commit(E_Client *ec, E_Comp_Wl_Surface_State *state)
    E_Comp_Wl_Buffer *buffer;
 
    first = !e_pixmap_usable_get(ec->pixmap);
-#ifndef HAVE_WAYLAND_ONLY
-   if (first && e_client_has_xwindow(ec))
-     first = !e_pixmap_usable_get(e_comp_x_client_pixmap_get(ec));
-#endif
 
    if (ec->ignored && (ec->comp_data->shell.surface || ec->internal))
      {
@@ -2817,16 +2812,7 @@ _e_comp_wl_compositor_cb_surface_create(struct wl_client *client, struct wl_reso
    /* set reference to pixmap so we can fetch it later */
    DBG("\tUsing Client: %p", ec);
    wl_resource_set_user_data(res, ec);
-#ifndef HAVE_WAYLAND_ONLY
-   EINA_LIST_FOREACH(e_comp_wl->xwl_pending, l, wc)
-     {
-        if (!e_pixmap_is_x(wc->pixmap)) continue;
-        if (wl_resource_get_id(res) !=
-            ((E_Comp_X_Client_Data*)wc->comp_data)->surface_id) continue;
-        e_comp_x_xwayland_client_setup(wc, ec);
-        break;
-     }
-#endif
+
    /* emit surface create signal */
    wl_signal_emit(&e_comp_wl->signals.surface.create, res);
 
index 51e23fe93b9573c14022bdbb0b216562e609d5d5..2a0b0d13daf58be45177e8bc6f40a168a06a772f 100644 (file)
@@ -1,7 +1,4 @@
 #ifdef E_TYPEDEFS
-#  ifndef HAVE_WAYLAND_ONLY
-#   include "e_comp_x.h"
-#  endif
 #else
 # ifndef E_COMP_WL_H
 #  define E_COMP_WL_H
 
 #  include <xkbcommon/xkbcommon.h>
 
-#  ifndef HAVE_WAYLAND_ONLY
-#   include "e_comp_x.h"
-#  endif
-
 #  ifdef __linux__
 #   include <linux/input.h>
 #  else
@@ -396,10 +389,6 @@ struct _E_Comp_Wl_Client_Data
      {
         int32_t x, y;
      } popup;
-#ifndef HAVE_WAYLAND_ONLY
-   E_Pixmap *xwayland_pixmap;
-   E_Comp_X_Client_Data *xwayland_data;
-#endif
 
    struct
      {
index 1320efe6e4bdda47b99216a9f4107b00470e9d54..05a0ee57dad793be31d903fd4cf26bc6bd8e18da 100644 (file)
@@ -1,5 +1,4 @@
 #define EXECUTIVE_MODE_ENABLED
-#define E_COMP_WL
 #include "e.h"
 
 static void
index 618cb4e6303696ca6353fdc069b6fc7aa43e10b3..19972bce7e504a98365860d3dafd4ffc7ab39242 100644 (file)
@@ -1,5 +1,4 @@
 #define EXECUTIVE_MODE_ENABLED
-#define E_COMP_WL
 #include "e.h"
 #include <sys/mman.h>
 #ifdef HAVE_WL_DRM
index fb2bd88f5c5ea6e1fd8484ead0c6b31d092de283..972b6837c71ba73229931b8583c7f3cb48035c7e 100644 (file)
@@ -1,4 +1,3 @@
-#define E_COMP_WL
 #include "e.h"
 #include <Ecore_Drm.h>
 #include <wayland-tbm-server.h>
index dec89f29ad72ba088cf6b6ca721912dadb0494a1..0fb449ac234ff964712f09df2941eee87913fad3 100644 (file)
@@ -14,7 +14,6 @@ static void      _e_desk_event_desk_name_change_free(void *data, void *ev);
 static void      _e_desk_show_begin(E_Desk *desk, int dx, int dy);
 static void      _e_desk_hide_begin(E_Desk *desk, int dx, int dy);
 static void      _e_desk_event_desk_window_profile_change_free(void *data, void *ev);
-static void      _e_desk_window_profile_change_protocol_set(void);
 
 static E_Desk_Flip_Cb _e_desk_flip_cb = NULL;
 static void *_e_desk_flip_data = NULL;
@@ -575,8 +574,6 @@ e_desk_window_profile_update(void)
    E_Config_Desktop_Window_Profile *cfprof;
    int d_x, d_y, ok;
 
-   _e_desk_window_profile_change_protocol_set();
-
    if (!(e_config->use_desktop_window_profile))
      return;
 
@@ -843,11 +840,3 @@ _e_desk_hide_begin(E_Desk *desk, int dx, int dy)
         e_client_comp_hidden_set(ec, EINA_TRUE);
      }
 }
-
-static void
-_e_desk_window_profile_change_protocol_set(void)
-{
-#ifndef HAVE_WAYLAND_ONLY
-  ecore_x_e_window_profile_supported_set(e_comp->root, e_config->use_desktop_window_profile);
-#endif
-}
index ffe23270f1d3341813d6cdadb91bc1ea63ee9f5a..c7b5b2c8ec71776b913f1d2a4e6cfdc216c74a03 100644 (file)
@@ -14,13 +14,6 @@ static unsigned int _e_dpms_timeout_suspend = 0;
 static unsigned int _e_dpms_timeout_off = 0;
 static int _e_dpms_enabled = EINA_FALSE;
 
-#ifdef HAVE_WAYLAND
-//static Eina_List *handlers;
-//static Ecore_Timer *standby_timer;
-//static Ecore_Timer *suspend_timer;
-//static Ecore_Timer *off_timer;
-#endif
-
 #define STANDBY 5
 #define SUSPEND 6
 #define OFF 7
@@ -77,55 +70,6 @@ _e_dpms_handler_desk_show_cb(void *data EINA_UNUSED, int type EINA_UNUSED, void
    return ECORE_CALLBACK_PASS_ON;
 }
 
-#ifdef HAVE_WAYLAND
-//static Eina_Bool
-//_e_dpms_standby(void *d EINA_UNUSED)
-//{
-//   if (e_comp->screen && e_comp->screen->dpms)
-//     e_comp->screen->dpms(1);
-//   standby_timer = NULL;
-//   return EINA_FALSE;
-//}
-
-//static Eina_Bool
-//_e_dpms_suspend(void *d EINA_UNUSED)
-//{
-//   if (e_comp->screen && e_comp->screen->dpms)
-//     e_comp->screen->dpms(2);
-//   suspend_timer = NULL;
-//   return EINA_FALSE;
-//}
-
-//static Eina_Bool
-//_e_dpms_off(void *d EINA_UNUSED)
-//{
-//   if (e_comp->screen && e_comp->screen->dpms)
-//     e_comp->screen->dpms(3);
-//   off_timer = NULL;
-//   return EINA_FALSE;
-//}
-
-//static Eina_Bool
-//_e_dpms_screensaver_on()
-//{
-//   standby_timer = ecore_timer_add(STANDBY, _e_dpms_standby, NULL);
-//   suspend_timer = ecore_timer_add(SUSPEND, _e_dpms_suspend, NULL);
-//   off_timer = ecore_timer_add(OFF, _e_dpms_off, NULL);
-//   return ECORE_CALLBACK_RENEW;
-//}
-
-//static Eina_Bool
-//_e_dpms_screensaver_off()
-//{
-//   E_FREE_FUNC(standby_timer, ecore_timer_del);
-//   E_FREE_FUNC(suspend_timer, ecore_timer_del);
-//   E_FREE_FUNC(off_timer, ecore_timer_del);
-//   if (e_comp->screen && e_comp->screen->dpms)
-//     e_comp->screen->dpms(0);
-//   return ECORE_CALLBACK_RENEW;
-//}
-#endif
-
 EINTERN int
 e_dpms_init(void)
 {
@@ -153,23 +97,6 @@ e_dpms_init(void)
    _e_dpms_handler_desk_show = ecore_event_handler_add
        (E_EVENT_DESK_SHOW, _e_dpms_handler_desk_show_cb, NULL);
 
-#ifndef HAVE_WAYLAND_ONLY
-   if (e_comp->comp_type == E_PIXMAP_TYPE_X)
-     {
-        _e_dpms_enabled = ecore_x_dpms_enabled_get();
-        ecore_x_dpms_timeouts_get
-          (&_e_dpms_timeout_standby, &_e_dpms_timeout_suspend, &_e_dpms_timeout_off);
-        e_dpms_force_update();
-     }
-#endif
-#ifdef HAVE_WAYLAND
-   if (e_comp->comp_type != E_PIXMAP_TYPE_X)
-     {
-        //E_LIST_HANDLER_APPEND(handlers, E_EVENT_SCREENSAVER_ON, _e_dpms_screensaver_on, NULL);
-        //E_LIST_HANDLER_APPEND(handlers, E_EVENT_SCREENSAVER_OFF_PRE, _e_dpms_screensaver_off, NULL);
-     }
-#endif
-
    return 1;
 }
 
index b55c7966e04dc950083c542b7901903acbf2f403..15479a4b4344a5a68d2120d787d7a0a2145db7e6 100644 (file)
@@ -262,7 +262,6 @@ e_hints_aux_hint_value_get(E_Client *ec, const char *name)
 EAPI Eina_Bool
 e_hints_aux_hint_add_with_pixmap(E_Pixmap *cp, int32_t id, const char *name, const char *val)
 {
-#ifdef HAVE_WAYLAND_ONLY
    E_Comp_Wl_Client_Data *cdata;
    Eina_Bool found = EINA_FALSE;
    E_Comp_Wl_Aux_Hint *hint;
@@ -312,9 +311,7 @@ e_hints_aux_hint_add_with_pixmap(E_Pixmap *cp, int32_t id, const char *name, con
      }
 
    if (!found)
-      return EINA_TRUE;
-   return EINA_FALSE;
-#endif
+     return EINA_TRUE;
 
    return EINA_FALSE;
 }
@@ -322,7 +319,6 @@ e_hints_aux_hint_add_with_pixmap(E_Pixmap *cp, int32_t id, const char *name, con
 EAPI Eina_Bool
 e_hints_aux_hint_change_with_pixmap(E_Pixmap *cp, int32_t id, const char *val)
 {
-#ifdef HAVE_WAYLAND_ONLY
    E_Comp_Wl_Client_Data *cdata;
    Eina_List *l;
    E_Comp_Wl_Aux_Hint *hint;
@@ -355,16 +351,14 @@ e_hints_aux_hint_change_with_pixmap(E_Pixmap *cp, int32_t id, const char *val)
      }
 
    if (found)
-      return EINA_TRUE;
-   return EINA_FALSE;
-#endif
+     return EINA_TRUE;
+
    return EINA_FALSE;
 }
 
 EAPI Eina_Bool
 e_hints_aux_hint_del_with_pixmap(E_Pixmap *cp, int32_t id)
 {
-#ifdef HAVE_WAYLAND_ONLY
    E_Comp_Wl_Client_Data *cdata;
    Eina_List *l, *ll;
    E_Comp_Wl_Aux_Hint *hint;
@@ -389,17 +383,13 @@ e_hints_aux_hint_del_with_pixmap(E_Pixmap *cp, int32_t id)
 
    if (res == -1)
      return EINA_FALSE;
-   else
-     return EINA_TRUE;
-#endif
 
-   return EINA_FALSE;
+   return EINA_TRUE;
 }
 
 EAPI const char *
 e_hints_aux_hint_value_get_with_pixmap(E_Pixmap *cp, const char *name)
 {
-#ifdef HAVE_WAYLAND_ONLY
    E_Comp_Wl_Client_Data *cdata;
    Eina_List *l;
    E_Comp_Wl_Aux_Hint *hint;
@@ -420,6 +410,4 @@ e_hints_aux_hint_value_get_with_pixmap(E_Pixmap *cp, const char *name)
      }
 
    return res;
-#endif
-   return NULL;
 }
index 7cf869895005a9cfa23d8c51f884a47f81767743..91e6d078539b3cf8b1861f7495d3a3bb90902c6c 100644 (file)
 #include "e_comp_hwc.h"
 #include "e_comp_screen.h"
 #include "e_output.h"
-
-#ifdef HAVE_WAYLAND
-# include "e_comp_wl.h"
-# include "e_comp_wl_data.h"
-# include "e_comp_wl_input.h"
-# include "e_uuid_store.h"
+#include "e_comp_wl.h"
+#include "e_comp_wl_data.h"
+#include "e_comp_wl_input.h"
+#include "e_uuid_store.h"
 #ifdef HAVE_WAYLAND_TBM
 # include "e_comp_wl_tbm.h"
 #endif
-#endif
index 5e23148f5ca72511911fb133bcfef0971e49e124..542bb95f6c01613eb147a8baf8ac59c8f60756cd 100644 (file)
@@ -1,11 +1,9 @@
-#define E_COMP_WL
 #include "e.h"
 #include "e_info_server.h"
 #include <tbm_bufmgr.h>
 #include <tbm_surface.h>
 #include <tbm_surface_internal.h>
 #include <tdm_helper.h>
-#ifdef HAVE_WAYLAND_ONLY
 #include <wayland-tbm-server.h>
 #include "e_comp_wl.h"
 #include "e_info_protocol.h"
@@ -28,7 +26,7 @@ struct wl_resource
 };
 
 void wl_map_for_each(struct wl_map *map, void *func, void *data);
-#endif
+
 #ifdef HAVE_HWC
 #include "e_comp_hwc.h"
 #endif
@@ -105,7 +103,6 @@ _msg_clients_append(Eldbus_Message_Iter *iter)
           res_id = e_pixmap_res_id_get(ec->pixmap);
 
         pid = ec->netwm.pid;
-#ifdef HAVE_WAYLAND_ONLY
         if (pid <= 0)
           {
              if (ec->comp_data)
@@ -115,7 +112,7 @@ _msg_clients_append(Eldbus_Message_Iter *iter)
                     wl_client_get_credentials(wl_resource_get_client(cdata->surface), &pid, NULL, NULL);
                }
           }
-#endif
+
         if (e_comp->hwc)
           {
              // TODO: print plane number
@@ -231,14 +228,12 @@ _msg_connected_clients_append(Eldbus_Message_Iter *iter)
 
              if (ec->pixmap)
                res_id = e_pixmap_res_id_get(ec->pixmap);
-#ifdef HAVE_WAYLAND_ONLY
              if (ec->comp_data)
                {
                   E_Comp_Wl_Client_Data *cdata = (E_Comp_Wl_Client_Data*)ec->comp_data;
                   if (cdata->surface)
                     wl_client_get_credentials(wl_resource_get_client(cdata->surface), &pid, NULL, NULL);
                }
-#endif
              if (cinfo->pid == pid)
                {
                   __CONNECTED_CLIENTS_ARG_APPEND_TYPE("[E_Client Info]", "win:0x%08x res_id:%5d, name:%20s, geo:(%4d, %4d, %4dx%4d), layer:%5d, visible:%d, argb:%d",
@@ -406,7 +401,6 @@ _msg_window_prop_client_append(Eldbus_Message_Iter *iter, E_Client *target_ec)
           }
      }
 
-#ifdef HAVE_WAYLAND_ONLY
    if (target_ec->comp_data)
      {
 
@@ -416,7 +410,6 @@ _msg_window_prop_client_append(Eldbus_Message_Iter *iter, E_Client *target_ec)
              wl_client_get_credentials(wl_resource_get_client(cdata->surface), &pid, NULL, NULL);
           }
      }
-#endif
 
 #define __WINDOW_PROP_ARG_APPEND(title, value) ({                                    \
                                                 eldbus_message_iter_arguments_append(iter, "(ss)", &struct_of_ec);    \
@@ -546,7 +539,6 @@ _msg_window_prop_append(Eldbus_Message_Iter *iter, uint32_t mode, const char *va
         else if (mode == WINDOW_PID_MODE)
           {
              pid_t pid = -1;
-#ifdef HAVE_WAYLAND_ONLY
              if (ec->comp_data)
                {
                   E_Comp_Wl_Client_Data *cdata = (E_Comp_Wl_Client_Data*)ec->comp_data;
@@ -555,7 +547,6 @@ _msg_window_prop_append(Eldbus_Message_Iter *iter, uint32_t mode, const char *va
                        wl_client_get_credentials(wl_resource_get_client(cdata->surface), &pid, NULL, NULL);
                     }
                }
-#endif
              if (pid == value_number)
                {
                   _msg_window_prop_client_append(array_of_ec, ec);
@@ -1444,7 +1435,6 @@ e_info_server_dump_client(E_Client *ec, char *fname)
    if (!ec) return;
    if (e_client_util_ignored_get(ec)) return;
 
- #ifdef HAVE_WAYLAND_ONLY
    struct wl_shm_buffer *shmbuffer = NULL;
    E_Comp_Wl_Buffer *buffer = e_pixmap_resource_get(ec->pixmap);
    if (!buffer) return;
@@ -1487,7 +1477,6 @@ e_info_server_dump_client(E_Client *ec, char *fname)
      {
         ERR("Invalid resource:%u", wl_resource_get_id(buffer->resource));
      }
- #endif
 
    EINA_SAFETY_ON_NULL_GOTO(data, err);
 
@@ -1504,8 +1493,7 @@ e_info_server_dump_client(E_Client *ec, char *fname)
    if (!evas_object_image_save(img, fname, NULL, "compress=1 quality=100"))
      ERR("Cannot save window to '%s'", fname);
 
- err:
- #ifdef HAVE_WAYLAND_ONLY
+err:
    if (data)
      {
         if (buffer->type == E_COMP_WL_BUFFER_TYPE_NATIVE)
@@ -1519,7 +1507,6 @@ e_info_server_dump_client(E_Client *ec, char *fname)
              tbm_surface_unmap(tbm_surface);
           }
      }
- #endif
 
    if (img) evas_object_del(img);
    if (ee) ecore_evas_free(ee);
index a3545ad4b0e0108b43eae28422072eab3b8be042..6ea1dc15fe4c2d814626716768a74f73f4ca0407 100644 (file)
@@ -21,7 +21,6 @@ EINTERN int e_info_server_shutdown(void);
 
 EINTERN void e_info_server_dump_client(E_Client *ec, char *fname);
 
-#ifdef HAVE_WAYLAND_ONLY
 #define WL_HIDE_DEPRECATED
 #include <wayland-server.h>
 
@@ -46,7 +45,6 @@ struct argument_details {
    char type;
    int nullable;
 };
-#endif
 
 #endif
 #endif
index 2fe55672b56760fb26e14dc529f80cded1b4cb35..d03eaba9906fa360ea6e0a3b1b59ed5fda69108f 100644 (file)
@@ -109,10 +109,6 @@ _e_pointer_cb_idle_pre(void *data)
 
    if (ptr->canvas)
      ecore_evas_pointer_xy_get(ptr->ee, &ptr->x, &ptr->y);
-#ifndef HAVE_WAYLAND_ONLY
-   else
-     ecore_x_pointer_xy_get(ptr->win, &ptr->x, &ptr->y);
-#endif
 
    ptr->idle_tmr = ecore_timer_loop_add(4.0, _e_pointer_cb_idle_wait, ptr);
 
@@ -521,10 +517,6 @@ e_pointer_hide(E_Pointer *ptr)
      _e_pointer_canvas_del(ptr);
    if (ptr->canvas)
      evas_object_hide(ptr->o_ptr);
-#ifndef HAVE_WAYLAND_ONLY
-   if (ptr->win)
-     ecore_x_window_cursor_set(ptr->win, 0);
-#endif
 }
 
 E_API void 
@@ -695,14 +687,6 @@ e_pointer_idler_before(void)
 
              if ((updates = evas_render_updates(ptr->buffer_evas)))
                {
-#ifndef HAVE_WAYLAND_ONLY
-                  Ecore_X_Cursor cur;
-
-                  cur = ecore_x_cursor_new(ptr->win, ptr->pixels, ptr->w, 
-                                           ptr->h, ptr->hot.x, ptr->hot.y);
-                  ecore_x_window_cursor_set(ptr->win, cur);
-                  ecore_x_cursor_free(cur);
-#endif
                   evas_render_updates_free(updates);
                }
           }
index 7033ce4e58fbe014b7c7e9d1c076d70a1cfe1c0c..89961c7a3561150c2f301c2ca409c7f7125f678d 100644 (file)
@@ -317,10 +317,8 @@ e_remember_default_match_set(E_Remember *rem, E_Client *ec)
 E_API void
 e_remember_update(E_Client *ec)
 {
-#ifdef HAVE_WAYLAND
    /* Use this as e_remeber_update is called in all the right places already */
    e_uuid_store_entry_update(ec->uuid, ec);
-#endif
    if (ec->new_client) return;
    if (!ec->remember) return;
    if (ec->remember->keep_settings) return;
index ee74976bd6756c89cef9c36cb6791325d1125e68..5cf53af002190609e93731a5e4fc1625d3ecacb7 100644 (file)
@@ -5,10 +5,8 @@
  */
 #include "e.h"
 
-#ifdef HAVE_WAYLAND
-# ifdef HAVE_WL_DRM
-#include <Ecore_Drm.h>
-# endif
+#ifdef HAVE_WL_DRM
+# include <Ecore_Drm.h>
 #endif
 
 #ifdef HAVE_EXECINFO_H
@@ -20,7 +18,6 @@ static volatile Eina_Bool _e_x_composite_shutdown_try = 0;
 static void
 _e_crash(void)
 {
-#ifdef HAVE_WAYLAND
    if (e_comp->comp_type == E_PIXMAP_TYPE_WL)
      {
 #ifdef HAVE_WL_DRM
@@ -42,7 +39,6 @@ _e_crash(void)
 #endif
         return;
      }
-#endif
 }
 
 /* a tricky little devil, requires e and it's libs to be built
@@ -64,12 +60,6 @@ e_sigill_act(int x EINA_UNUSED, siginfo_t *info EINA_UNUSED, void *data EINA_UNU
    kill(getpid(), SIGUSR1);
    kill(getpid(), SIGSEGV);
    pause();
-   /* _e_x_composite_shutdown(); */
-   /* ecore_x_pointer_ungrab(); */
-   /* ecore_x_keyboard_ungrab(); */
-   /* ecore_x_ungrab(); */
-   /* ecore_x_sync(); */
-   /* e_alert_show(); */
 }
 
 E_API void
index 9420a6f2a21135113adcd222c760175aa3c52402..be0fc95bbcf175975f11dbe9cd8fd6af49742799 100644 (file)
@@ -124,11 +124,7 @@ _e_test_helper_message_append_clients(Eldbus_Message_Iter *iter)
         if (!ec) continue;
         if (e_client_util_ignored_get(ec)) continue;
 
-#ifdef HAVE_WAYLAND_ONLY
         win = e_pixmap_res_id_get(ec->pixmap);
-#else
-        win = e_client_util_win_get(ec);
-#endif
 
         eldbus_message_iter_arguments_append(array_of_ec, "(usiiiiibb)", &struct_of_ec);
         eldbus_message_iter_arguments_append
@@ -148,16 +144,8 @@ _e_test_helper_restack(Ecore_Window win, Ecore_Window target, int above)
 {
    E_Client *ec = NULL, *tec = NULL;
 
-#ifdef HAVE_WAYLAND_ONLY
    ec = e_pixmap_find_client_by_res_id(win);
    tec = e_pixmap_find_client_by_res_id(target);
-#else
-   if ((!ec) || ((e_pixmap_type_get(ec->pixmap) == E_PIXMAP_TYPE_X)))
-     {
-        ec = e_pixmap_find_client(E_PIXMAP_TYPE_X, win);
-        tec = e_pixmap_find_client(E_PIXMAP_TYPE_X, target);
-     }
-#endif
 
    if (!ec) return;
 
@@ -288,11 +276,7 @@ _e_test_helper_cb_visibility_change(void *data EINA_UNUSED,
    if (!th_data->registrant.win) return ECORE_CALLBACK_PASS_ON;
 
    ec = ev->ec;
-#ifdef HAVE_WAYLAND_ONLY
    win = e_pixmap_res_id_get(ec->pixmap);
-#else
-   win = e_client_util_win_get(ec);
-#endif
 
    if (win != th_data->registrant.win) return ECORE_CALLBACK_PASS_ON;
 
@@ -342,11 +326,7 @@ _e_test_helper_cb_client_restack(void *data EINA_UNUSED, int type EINA_UNUSED, v
 
    ec = ev->ec;
 
-#ifdef HAVE_WAYLAND_ONLY
    win = e_pixmap_res_id_get(ec->pixmap);
-#else
-   win = e_client_util_win_get(ec);
-#endif
 
    if (win)
      {
index 1ec065ace613758ac7f1fcadf5b44bbd670b20c3..4e4bc3e2bf6b07d9a9fcc91fa2636c166b1fca2d 100644 (file)
@@ -72,13 +72,10 @@ _e_elm_win_trap_show(void *data, Evas_Object *o)
      {
         E_Client *ec;
         Ecore_Window win;
-#ifdef HAVE_WAYLAND
         uintptr_t wl_win_id = NULL;
-#endif
         E_Pixmap_Type type = E_PIXMAP_TYPE_X;
 
         win = elm_win_window_id_get(o);
-#ifdef HAVE_WAYLAND
         if (!strncmp(ecore_evas_engine_name_get(ee), "wayland", 7))
           {
              type = E_PIXMAP_TYPE_WL;
@@ -88,17 +85,14 @@ _e_elm_win_trap_show(void *data, Evas_Object *o)
              wl_win_id = win;
           }
         else
-#endif
           {
              type = E_PIXMAP_TYPE_X;
              ctx->pointer = e_pointer_window_new(win, EINA_TRUE);
           }
 
-#ifdef HAVE_WAYLAND
         if ((type == E_PIXMAP_TYPE_WL) && (wl_win_id))
           ec = e_pixmap_find_client(type, wl_win_id);
         else
-#endif
           ec = e_pixmap_find_client(type, win);
         if (ec)
           ctx->client = ec;
@@ -115,7 +109,6 @@ _e_elm_win_trap_show(void *data, Evas_Object *o)
              if ((!title) || (!title[0]))
                title = "E";
              ecore_evas_title_set(ee, title);
-#ifdef HAVE_WAYLAND
              if (type == E_PIXMAP_TYPE_WL)
                {
                   if ((cp = e_pixmap_find(type, wl_win_id)))
@@ -129,7 +122,6 @@ _e_elm_win_trap_show(void *data, Evas_Object *o)
                     cp = e_pixmap_new(type, wl_win_id);
                }
              else
-#endif
                cp = e_pixmap_new(type, win);
              EINA_SAFETY_ON_NULL_RETURN_VAL(cp, EINA_TRUE);
 
index 52dcd79eec718ea742a9a53393e5bb9ce7921d6f..5df43cc7d81fa254d2dfbc093d8279f604d4dadc 100644 (file)
@@ -1,4 +1,3 @@
-#define E_COMP_WL
 #include "e.h"
 #include "bq_mgr_protocol.h"
 
index 33e74fc1e82c4af0d29c67279bbab1c166a4b04c..15969596ef65d12b5aa3b67cf6b69858a2402c09 100644 (file)
@@ -1,4 +1,3 @@
-#define E_COMP_WL
 #include "e.h"
 #include "e_mod_main.h"
 #include "e_input_method_protocol.h"
index 50297980dfcea8b6931f45a53afb092fb3fd14d7..8ca8ce8887ea0de3d2ad1b8f0ad85d3bffbc1d15 100644 (file)
@@ -1,4 +1,3 @@
-#define E_COMP_WL
 #include "e.h"
 #include <xdg-shell-server-protocol.h>
 #include <tizen-extension-server-protocol.h>
index d6646a623c6190d54ce315ec4735dbe5711753c0..65fdf22378bf5f3e4a0705e49bea5efbcb1a67af 100644 (file)
@@ -1,5 +1,4 @@
 #define EXECUTIVE_MODE_ENABLED
-#define E_COMP_WL
 #include "e.h"
 #include <scaler-server-protocol.h>
 #include <transform-server-protocol.h>