summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-09-23 12:39:18 -0400
committerChris Michael <cp.michael@samsung.com>2015-12-03 12:02:40 -0500
commitf811cc85d57c38b379337a48c14d39b83f6ff439 (patch)
tree776b01f7a9422eb47bf7519e4190b382b9c6c8d1 /src
parent7e5ccc3862dbf8385730b3ffc9aee0612ea62ad3 (diff)
ecore-wl2: Add event structures for focus in/out
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/lib/ecore_wl2/Ecore_Wl2.h15
-rw-r--r--src/lib/ecore_wl2/ecore_wl2.c4
2 files changed, 18 insertions, 1 deletions
diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h
index 2abbad5c98..16ad1007d8 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;
36typedef struct _Ecore_Wl2_Output Ecore_Wl2_Output; 36typedef struct _Ecore_Wl2_Output Ecore_Wl2_Output;
37typedef struct _Ecore_Wl2_Input Ecore_Wl2_Input; 37typedef struct _Ecore_Wl2_Input Ecore_Wl2_Input;
38 38
39typedef struct _Ecore_Wl2_Event_Focus_In
40{
41 unsigned int window;
42 unsigned int timestamp;
43} Ecore_Wl2_Event_Focus_In;
44
45typedef struct _Ecore_Wl2_Event_Focus_Out
46{
47 unsigned int window;
48 unsigned int timestamp;
49} Ecore_Wl2_Event_Focus_Out;
50
39typedef struct _Ecore_Wl2_Global 51typedef struct _Ecore_Wl2_Global
40{ 52{
41 Eina_Stringshare *interface; 53 Eina_Stringshare *interface;
@@ -62,7 +74,8 @@ typedef enum _Ecore_Wl2_Window_Type
62 74
63EAPI extern int ECORE_WL2_EVENT_GLOBAL_ADDED; 75EAPI extern int ECORE_WL2_EVENT_GLOBAL_ADDED;
64EAPI extern int ECORE_WL2_EVENT_GLOBAL_REMOVED; 76EAPI extern int ECORE_WL2_EVENT_GLOBAL_REMOVED;
65 77EAPI extern int ECORE_WL2_EVENT_FOCUS_IN;
78EAPI extern int ECORE_WL2_EVENT_FOCUS_OUT;
66/** 79/**
67 * @file 80 * @file
68 * @brief Ecore functions for dealing with the Wayland display protocol 81 * @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 5eb377e325..74218cbe77 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;
13/* public API variables */ 13/* public API variables */
14EAPI int ECORE_WL2_EVENT_GLOBAL_ADDED = 0; 14EAPI int ECORE_WL2_EVENT_GLOBAL_ADDED = 0;
15EAPI int ECORE_WL2_EVENT_GLOBAL_REMOVED = 0; 15EAPI int ECORE_WL2_EVENT_GLOBAL_REMOVED = 0;
16EAPI int ECORE_WL2_EVENT_FOCUS_IN = 0;
17EAPI int ECORE_WL2_EVENT_FOCUS_OUT = 0;
16 18
17static void 19static void
18_cb_wl_log_print(const char *format, va_list args) 20_cb_wl_log_print(const char *format, va_list args)
@@ -57,6 +59,8 @@ ecore_wl2_init(void)
57 { 59 {
58 ECORE_WL2_EVENT_GLOBAL_ADDED = ecore_event_type_new(); 60 ECORE_WL2_EVENT_GLOBAL_ADDED = ecore_event_type_new();
59 ECORE_WL2_EVENT_GLOBAL_REMOVED = ecore_event_type_new(); 61 ECORE_WL2_EVENT_GLOBAL_REMOVED = ecore_event_type_new();
62 ECORE_WL2_EVENT_FOCUS_IN = ecore_event_type_new();
63 ECORE_WL2_EVENT_FOCUS_OUT = ecore_event_type_new();
60 } 64 }
61 65
62 wl_log_set_handler_server(_cb_wl_log_print); 66 wl_log_set_handler_server(_cb_wl_log_print);