devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=1f4b386664f6dbf09106c5fe6a369a11cba64571

commit 1f4b386664f6dbf09106c5fe6a369a11cba64571
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Thu Sep 10 13:34:26 2015 -0400

    ecore-wl2: Start on code for pointer motion event
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_wl2/ecore_wl2_input.c | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/src/lib/ecore_wl2/ecore_wl2_input.c 
b/src/lib/ecore_wl2/ecore_wl2_input.c
index ee95a21..b417423 100644
--- a/src/lib/ecore_wl2/ecore_wl2_input.c
+++ b/src/lib/ecore_wl2/ecore_wl2_input.c
@@ -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

-- 


Reply via email to