forked from enlightenment/efl
ecore-wl2: Don't reset window->input on keyboard or pointer leave events
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
b7804b6877
commit
68527379e2
|
@ -511,8 +511,6 @@ _pointer_cb_leave(void *data, struct wl_pointer *pointer EINA_UNUSED, unsigned i
|
|||
window = _ecore_wl2_display_window_surface_find(input->display, surface);
|
||||
if (!window) return;
|
||||
|
||||
window->input = NULL;
|
||||
|
||||
_ecore_wl2_input_mouse_out_send(input, window);
|
||||
}
|
||||
|
||||
|
@ -525,14 +523,14 @@ _pointer_cb_motion(void *data, struct wl_pointer *pointer EINA_UNUSED, unsigned
|
|||
input = data;
|
||||
if (!input) return;
|
||||
|
||||
/* get currently focused window */
|
||||
window = input->focus.pointer;
|
||||
if (!window) return;
|
||||
|
||||
input->timestamp = timestamp;
|
||||
input->pointer.sx = wl_fixed_to_double(sx);
|
||||
input->pointer.sy = wl_fixed_to_double(sy);
|
||||
|
||||
/* get currently focused window */
|
||||
window = input->focus.pointer;
|
||||
if (!window) return;
|
||||
|
||||
/* NB: Unsure if we need this just yet, so commented out for now */
|
||||
/* if ((input->pointer.sx > window->geometry.w) || */
|
||||
/* (input->pointer.sy > window->geometry.h)) */
|
||||
|
@ -752,7 +750,6 @@ _keyboard_cb_leave(void *data, struct wl_keyboard *keyboard EINA_UNUSED, unsigne
|
|||
|
||||
_ecore_wl2_input_focus_out_send(input, window);
|
||||
|
||||
window->input = NULL;
|
||||
input->focus.keyboard = NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue