From 9cc1ba045c4a7980559300c0932797009e7ce753 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Wed, 30 Sep 2015 10:27:47 -0400 Subject: [PATCH] ecore-wl2: Fix issue of never getting keyboard focus Signed-off-by: Chris Michael --- src/lib/ecore_wl2/ecore_wl2_input.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/ecore_wl2/ecore_wl2_input.c b/src/lib/ecore_wl2/ecore_wl2_input.c index 5145b99..56fc4ed 100644 --- a/src/lib/ecore_wl2/ecore_wl2_input.c +++ b/src/lib/ecore_wl2/ecore_wl2_input.c @@ -1090,7 +1090,8 @@ _seat_cb_capabilities(void *data, struct wl_seat *seat, enum wl_seat_capability wl_pointer_destroy(input->wl.pointer); input->wl.pointer = NULL; } - else if ((caps & WL_SEAT_CAPABILITY_KEYBOARD) && (!input->wl.keyboard)) + + if ((caps & WL_SEAT_CAPABILITY_KEYBOARD) && (!input->wl.keyboard)) { input->wl.keyboard = wl_seat_get_keyboard(seat); wl_keyboard_set_user_data(input->wl.keyboard, input); @@ -1101,7 +1102,8 @@ _seat_cb_capabilities(void *data, struct wl_seat *seat, enum wl_seat_capability wl_keyboard_destroy(input->wl.keyboard); input->wl.keyboard = NULL; } - else if ((caps & WL_SEAT_CAPABILITY_TOUCH) && (!input->wl.touch)) + + if ((caps & WL_SEAT_CAPABILITY_TOUCH) && (!input->wl.touch)) { input->wl.touch = wl_seat_get_touch(seat); wl_touch_set_user_data(input->wl.touch, input); -- 2.7.4