ecore-wl2: Set window input on pointer enter/leave events

Summary: This is so that we can still change mouse cursor (to indicate resize)
even when the window does not have focus

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-09-30 11:10:04 -04:00
parent 0a9861c6aa
commit 4b0aaca962
1 changed files with 3 additions and 0 deletions

View File

@ -486,6 +486,7 @@ _pointer_cb_enter(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 = input;
input->focus.pointer = window;
_ecore_wl2_input_mouse_in_send(input, window);
@ -510,6 +511,8 @@ _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);
}