summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-08-08 09:53:52 -0400
committerChris Michael <cp.michael@samsung.com>2017-08-08 09:53:52 -0400
commit42b082fe36d9888864356666ba77e8f46fa99657 (patch)
tree355c890726078935d3687acaa283089e060c8138 /src/lib/ecore_wl2
parent52368bf463c2b5ea7b69e15a7e34b1ea13258ca1 (diff)
ecore-wl2: Add support for Window Iconify State Change
This patch adds support for the Window Iconify State Change event structure and the ecore event type to support it. '#divergence' @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_wl2')
-rw-r--r--src/lib/ecore_wl2/Ecore_Wl2.h8
-rw-r--r--src/lib/ecore_wl2/ecore_wl2.c5
2 files changed, 12 insertions, 1 deletions
diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h
index eab1bfe3e7..06e5c84ac7 100644
--- a/src/lib/ecore_wl2/Ecore_Wl2.h
+++ b/src/lib/ecore_wl2/Ecore_Wl2.h
@@ -315,6 +315,13 @@ typedef struct _Ecore_Wl2_Event_Window_Deactivate
315 unsigned int event_win; 315 unsigned int event_win;
316} Ecore_Wl2_Event_Window_Deactivate; 316} Ecore_Wl2_Event_Window_Deactivate;
317 317
318typedef struct _Ecore_Wl2_Event_Window_Iconify_State_Change
319{
320 unsigned int win;
321 unsigned int iconified;
322 unsigned int force;
323} Ecore_Wl2_Event_Window_Iconify_State_Change;
324
318typedef enum _Ecore_Wl2_Window_Type 325typedef enum _Ecore_Wl2_Window_Type
319{ 326{
320 ECORE_WL2_WINDOW_TYPE_NONE, 327 ECORE_WL2_WINDOW_TYPE_NONE,
@@ -395,6 +402,7 @@ EAPI extern int ECORE_WL2_EVENT_WINDOW_SHOW; /** @since 1.20 */
395EAPI extern int ECORE_WL2_EVENT_WINDOW_HIDE; /** @since 1.20 */ 402EAPI extern int ECORE_WL2_EVENT_WINDOW_HIDE; /** @since 1.20 */
396EAPI extern int ECORE_WL2_EVENT_WINDOW_ACTIVATE; /** @since 1.20 */ 403EAPI extern int ECORE_WL2_EVENT_WINDOW_ACTIVATE; /** @since 1.20 */
397EAPI extern int ECORE_WL2_EVENT_WINDOW_DEACTIVATE; /** @since 1.20 */ 404EAPI extern int ECORE_WL2_EVENT_WINDOW_DEACTIVATE; /** @since 1.20 */
405EAPI extern int ECORE_WL2_EVENT_WINDOW_ICONIFY_STATE_CHANGE; /** @since 1.21 */
398 406
399/** 407/**
400 * @file 408 * @file
diff --git a/src/lib/ecore_wl2/ecore_wl2.c b/src/lib/ecore_wl2/ecore_wl2.c
index 645012f4e4..ba22eb1986 100644
--- a/src/lib/ecore_wl2/ecore_wl2.c
+++ b/src/lib/ecore_wl2/ecore_wl2.c
@@ -52,6 +52,7 @@ EAPI int ECORE_WL2_EVENT_WINDOW_SHOW = 0;
52EAPI int ECORE_WL2_EVENT_WINDOW_HIDE = 0; 52EAPI int ECORE_WL2_EVENT_WINDOW_HIDE = 0;
53EAPI int ECORE_WL2_EVENT_WINDOW_ACTIVATE = 0; 53EAPI int ECORE_WL2_EVENT_WINDOW_ACTIVATE = 0;
54EAPI int ECORE_WL2_EVENT_WINDOW_DEACTIVATE = 0; 54EAPI int ECORE_WL2_EVENT_WINDOW_DEACTIVATE = 0;
55EAPI int ECORE_WL2_EVENT_WINDOW_ICONIFY_STATE_CHANGE = 0;
55 56
56EAPI int _ecore_wl2_event_window_www = -1; 57EAPI int _ecore_wl2_event_window_www = -1;
57EAPI int _ecore_wl2_event_window_www_drag = -1; 58EAPI int _ecore_wl2_event_window_www_drag = -1;
@@ -134,6 +135,7 @@ ecore_wl2_init(void)
134 ECORE_WL2_EVENT_WINDOW_HIDE = ecore_event_type_new(); 135 ECORE_WL2_EVENT_WINDOW_HIDE = ecore_event_type_new();
135 ECORE_WL2_EVENT_WINDOW_ACTIVATE = ecore_event_type_new(); 136 ECORE_WL2_EVENT_WINDOW_ACTIVATE = ecore_event_type_new();
136 ECORE_WL2_EVENT_WINDOW_DEACTIVATE = ecore_event_type_new(); 137 ECORE_WL2_EVENT_WINDOW_DEACTIVATE = ecore_event_type_new();
138 ECORE_WL2_EVENT_WINDOW_ICONIFY_STATE_CHANGE = ecore_event_type_new();
137 } 139 }
138 if (!no_session_recovery) 140 if (!no_session_recovery)
139 no_session_recovery = !!getenv("EFL_NO_WAYLAND_SESSION_RECOVERY"); 141 no_session_recovery = !!getenv("EFL_NO_WAYLAND_SESSION_RECOVERY");
@@ -203,7 +205,8 @@ ecore_wl2_shutdown(void)
203 ECORE_WL2_EVENT_WINDOW_SHOW, 205 ECORE_WL2_EVENT_WINDOW_SHOW,
204 ECORE_WL2_EVENT_WINDOW_HIDE, 206 ECORE_WL2_EVENT_WINDOW_HIDE,
205 ECORE_WL2_EVENT_WINDOW_ACTIVATE, 207 ECORE_WL2_EVENT_WINDOW_ACTIVATE,
206 ECORE_WL2_EVENT_WINDOW_DEACTIVATE); 208 ECORE_WL2_EVENT_WINDOW_DEACTIVATE,
209 ECORE_WL2_EVENT_WINDOW_ICONIFY_STATE_CHANGE);
207 210
208 /* shutdown Ecore_Event */ 211 /* shutdown Ecore_Event */
209 ecore_event_shutdown(); 212 ecore_event_shutdown();