ecore-wl2: Start on code for pointer leave event

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-09-10 13:25:54 -04:00
parent 1fd5a0f9b9
commit bb0c94d04a
1 changed files with 13 additions and 0 deletions

View File

@ -25,6 +25,7 @@ _pointer_cb_enter(void *data, struct wl_pointer *pointer EINA_UNUSED, unsigned i
if (!window) return;
input->focus.pointer = window;
/* TODO: send mouse in event */
}
@ -32,9 +33,21 @@ static void
_pointer_cb_leave(void *data, struct wl_pointer *pointer EINA_UNUSED, unsigned int serial, struct wl_surface *surface)
{
Ecore_Wl2_Input *input;
Ecore_Wl2_Window *window;
input = data;
if (!input) return;
input->focus.pointer = NULL;
/* trap for a surface that was just destroyed */
if (!surface) return;
/* find the window which this surface belongs to */
window = _ecore_wl2_display_window_surface_find(input->display, surface);
if (!window) return;
/* TODO: send mouse out event */
}
static void