ecore-wl2: Start on code for pointer motion event

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

View File

@ -57,6 +57,23 @@ _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;
/* trap for a surface that was just destroyed */
if (!surface) return;
input->pointer.sx = wl_fixed_to_double(sx);
input->pointer.sy = wl_fixed_to_double(sy);
/* 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)) */
/* return; */
/* TODO: send mouse move event */
}
static void