summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/ecore_wl2_input.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-03-08 13:40:41 -0600
committerDerek Foreman <derekf@osg.samsung.com>2017-03-09 12:21:08 -0600
commite1ffb46a0e65137fc78a6757f78a9a4a17f8d03e (patch)
tree4c2b8e15f902b2d3c1210e749bb0751188900d59 /src/lib/ecore_wl2/ecore_wl2_input.c
parenta1b90cf4d72961c62cfbb42d6f9b68cdb5490241 (diff)
ecore_wl2: Remove wl_shell client support
We're never going to encounter a compositor without at least xdg v5 support, so remove wl_shell support.
Diffstat (limited to 'src/lib/ecore_wl2/ecore_wl2_input.c')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_input.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_input.c b/src/lib/ecore_wl2/ecore_wl2_input.c
index 4d810a65b8..636ddf93ba 100644
--- a/src/lib/ecore_wl2/ecore_wl2_input.c
+++ b/src/lib/ecore_wl2/ecore_wl2_input.c
@@ -854,16 +854,12 @@ _keyboard_cb_enter(void *data, struct wl_keyboard *keyboard EINA_UNUSED, unsigne
854 854
855 input->focus.keyboard = window; 855 input->focus.keyboard = window;
856 window->input = input; 856 window->input = input;
857
858 if (window->wl_shell_surface)
859 _ecore_wl2_input_focus_in_send(window);
860} 857}
861 858
862static void 859static void
863_keyboard_cb_leave(void *data, struct wl_keyboard *keyboard EINA_UNUSED, unsigned int serial, struct wl_surface *surface) 860_keyboard_cb_leave(void *data, struct wl_keyboard *keyboard EINA_UNUSED, unsigned int serial, struct wl_surface *surface EINA_UNUSED)
864{ 861{
865 Ecore_Wl2_Input *input; 862 Ecore_Wl2_Input *input;
866 Ecore_Wl2_Window *window;
867 863
868 input = data; 864 input = data;
869 if (!input) return; 865 if (!input) return;
@@ -876,11 +872,6 @@ _keyboard_cb_leave(void *data, struct wl_keyboard *keyboard EINA_UNUSED, unsigne
876 if (input->repeat.timer) ecore_timer_del(input->repeat.timer); 872 if (input->repeat.timer) ecore_timer_del(input->repeat.timer);
877 input->repeat.timer = NULL; 873 input->repeat.timer = NULL;
878 input->focus.keyboard = NULL; 874 input->focus.keyboard = NULL;
879
880 /* find the window which this surface belongs to */
881 window = _ecore_wl2_display_window_surface_find(input->display, surface);
882 if ((window) && (window->wl_shell_surface))
883 _ecore_wl2_input_focus_out_send(window);
884} 875}
885 876
886static Eina_Bool 877static Eina_Bool