devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=22c069ef82c467f3457200fcb11663b187f12513

commit 22c069ef82c467f3457200fcb11663b187f12513
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Wed Sep 23 10:23:42 2015 -0400

    ecore-wl2: Add internal input functions to initiate/release a grab
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_wl2/ecore_wl2_input.c | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/src/lib/ecore_wl2/ecore_wl2_input.c 
b/src/lib/ecore_wl2/ecore_wl2_input.c
index 0ad4378..8a612f3 100644
--- a/src/lib/ecore_wl2/ecore_wl2_input.c
+++ b/src/lib/ecore_wl2/ecore_wl2_input.c
@@ -579,6 +579,25 @@ static const struct wl_seat_listener _seat_listener =
 };
 
 static void
+_ecore_wl2_input_grab(Ecore_Wl2_Input *input, Ecore_Wl2_Window *window, 
unsigned int button)
+{
+   input->grab.window = window;
+   input->grab.button = button;
+}
+
+static void
+_ecore_wl2_input_ungrab(Ecore_Wl2_Input *input)
+{
+   if ((input->grab.window) && (input->grab.button))
+     {
+        /* TODO: send a mouse up here */
+     }
+
+   input->grab.window = NULL;
+   input->grab.button = 0;
+}
+
+static void
 _ecore_wl2_input_cursor_setup(Ecore_Wl2_Input *input)
 {
    char *tmp;

-- 


Reply via email to