From f811cc85d57c38b379337a48c14d39b83f6ff439 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Wed, 23 Sep 2015 12:39:18 -0400 Subject: [PATCH] ecore-wl2: Add event structures for focus in/out Signed-off-by: Chris Michael --- 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); -- 2.7.4