devilhorns pushed a commit to branch master.

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

commit f811cc85d57c38b379337a48c14d39b83f6ff439
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Wed Sep 23 12:39:18 2015 -0400

    ecore-wl2: Add event structures for focus in/out
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_wl2/Ecore_Wl2.h | 15 ++++++++++++++-
 src/lib/ecore_wl2/ecore_wl2.c |  4 ++++
 2 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h
index 2abbad5..16ad100 100644
--- a/src/lib/ecore_wl2/Ecore_Wl2.h
+++ b/src/lib/ecore_wl2/Ecore_Wl2.h
@@ -36,6 +36,18 @@ typedef struct _Ecore_Wl2_Display Ecore_Wl2_Display;
 typedef struct _Ecore_Wl2_Output Ecore_Wl2_Output;
 typedef struct _Ecore_Wl2_Input Ecore_Wl2_Input;
 
+typedef struct _Ecore_Wl2_Event_Focus_In
+{
+   unsigned int window;
+   unsigned int timestamp;
+} Ecore_Wl2_Event_Focus_In;
+
+typedef struct _Ecore_Wl2_Event_Focus_Out
+{
+   unsigned int window;
+   unsigned int timestamp;
+} Ecore_Wl2_Event_Focus_Out;
+
 typedef struct _Ecore_Wl2_Global
 {
    Eina_Stringshare *interface;
@@ -62,7 +74,8 @@ typedef enum _Ecore_Wl2_Window_Type
 
 EAPI extern int ECORE_WL2_EVENT_GLOBAL_ADDED;
 EAPI extern int ECORE_WL2_EVENT_GLOBAL_REMOVED;
-
+EAPI extern int ECORE_WL2_EVENT_FOCUS_IN;
+EAPI extern int ECORE_WL2_EVENT_FOCUS_OUT;
 /**
  * @file
  * @brief Ecore functions for dealing with the Wayland display protocol
diff --git a/src/lib/ecore_wl2/ecore_wl2.c b/src/lib/ecore_wl2/ecore_wl2.c
index 5eb377e..74218cb 100644
--- a/src/lib/ecore_wl2/ecore_wl2.c
+++ b/src/lib/ecore_wl2/ecore_wl2.c
@@ -13,6 +13,8 @@ int _ecore_wl2_log_dom = -1;
 /* public API variables */
 EAPI int ECORE_WL2_EVENT_GLOBAL_ADDED = 0;
 EAPI int ECORE_WL2_EVENT_GLOBAL_REMOVED = 0;
+EAPI int ECORE_WL2_EVENT_FOCUS_IN = 0;
+EAPI int ECORE_WL2_EVENT_FOCUS_OUT = 0;
 
 static void
 _cb_wl_log_print(const char *format, va_list args)
@@ -57,6 +59,8 @@ ecore_wl2_init(void)
      {
         ECORE_WL2_EVENT_GLOBAL_ADDED = ecore_event_type_new();
         ECORE_WL2_EVENT_GLOBAL_REMOVED = ecore_event_type_new();
+        ECORE_WL2_EVENT_FOCUS_IN = ecore_event_type_new();
+        ECORE_WL2_EVENT_FOCUS_OUT = ecore_event_type_new();
      }
 
    wl_log_set_handler_server(_cb_wl_log_print);

-- 


Reply via email to