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:
parent
0a9861c6aa
commit
4b0aaca962
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue