devilhorns pushed a commit to branch master.

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

commit 1e7be23084a6403d58daa1fcf4d425cb92d330fe
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Thu Sep 10 12:16:05 2015 -0400

    ecore-wl2: Add placeholder pointer listener structure and setup
    pointer listener
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_wl2/ecore_wl2_input.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/lib/ecore_wl2/ecore_wl2_input.c 
b/src/lib/ecore_wl2/ecore_wl2_input.c
index 9cbd165..5a586a4 100644
--- a/src/lib/ecore_wl2/ecore_wl2_input.c
+++ b/src/lib/ecore_wl2/ecore_wl2_input.c
@@ -4,6 +4,15 @@
 
 #include "ecore_wl2_private.h"
 
+static const struct wl_pointer_listener _pointer_listener =
+{
+   NULL, // pointer enter
+   NULL, // pointer leave
+   NULL, // pointer motion
+   NULL, // pointer button
+   NULL, // pointer axis
+};
+
 static const struct wl_data_device_listener _data_listener =
 {
    NULL, // data offer
@@ -26,7 +35,7 @@ _seat_cb_capabilities(void *data, struct wl_seat *seat, enum 
wl_seat_capability
      {
         input->wl.pointer = wl_seat_get_pointer(seat);
         wl_pointer_set_user_data(input->wl.pointer, input);
-        /* TODO: pointer listener */
+        wl_pointer_add_listener(input->wl.pointer, &_pointer_listener, input);
 
         if (!input->cursor.surface)
           {

-- 


Reply via email to