devilhorns pushed a commit to branch devs/devilhorns/wayland.

commit 032bba9fe1ed7895085433f6939be62249d47a6b
Author: Chris Michael <[email protected]>
Date:   Mon Mar 11 10:12:59 2013 +0000

    Add start of Input code for wayland clients.
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/bin/e_comp_wl.h | 29 +++++++++++++++++++++++++++--
 1 file changed, 27 insertions(+), 2 deletions(-)

diff --git a/src/bin/e_comp_wl.h b/src/bin/e_comp_wl.h
index 56200a5..199e318 100644
--- a/src/bin/e_comp_wl.h
+++ b/src/bin/e_comp_wl.h
@@ -27,6 +27,7 @@ typedef struct _E_Wayland_Shell_Interface 
E_Wayland_Shell_Interface;
 typedef struct _E_Wayland_Region E_Wayland_Region;
 typedef struct _E_Wayland_Frame_Cb E_Wayland_Frame_Cb;
 typedef struct _E_Wayland_Compositor E_Wayland_Compositor;
+typedef struct _E_Wayland_Input E_Wayland_Input;
 
 enum _E_Wayland_Compositor_State
 {
@@ -152,25 +153,49 @@ struct _E_Wayland_Compositor
              struct wl_signal destroy;
              struct wl_signal activate;
              struct wl_signal kill;
-             struct wl_signal idle;
-             struct wl_signal wake;
+             /* struct wl_signal idle; */
+             /* struct wl_signal wake; */
              struct wl_signal seat;
           } signals;
 
         struct 
           {
              struct wl_list surface;
+             struct wl_list seat;
           } lists;
 
         E_Wayland_Shell_Interface shell_interface;
 
      } wl;
 
+   E_Wayland_Input *input;
+
    Ecore_Fd_Handler *fd_handler;
 
    void (*ping_cb) (E_Wayland_Surface *ews, unsigned int serial);
 };
 
+struct _E_Wayland_Input
+{
+   struct 
+     {
+        struct wl_seat seat;
+        struct wl_pointer pointer;
+        struct wl_touch touch;
+        struct wl_keyboard keyboard;
+        struct wl_list link;
+     } wl;
+
+   /* E_Wayland_Surface *sprite; */
+
+   struct wl_surface *focus;
+   struct wl_listener focus_listener;
+
+   Eina_Bool pointer : 1;
+   Eina_Bool keyboard : 1;
+   Eina_Bool touch : 1;
+};
+
 /* external variables */
 extern E_Wayland_Compositor *_e_wl_comp;
 

-- 

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev

Reply via email to