summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/ecore_wl2.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-06-27 09:26:55 -0400
committerChris Michael <cp.michael@samsung.com>2017-06-27 09:47:43 -0400
commitb12b26d4c03e78425784dbbd075d22e613390120 (patch)
tree7745849c24dd71ce204a007bd527c80a479a3883 /src/lib/ecore_wl2/ecore_wl2.c
parent873b917e9e97026b42f51c7ae7d03f4bc022eb55 (diff)
ecore-wl2: Add client-side event for Window Hide
Small patch to add and send a client-side event for when a window gets hidden. '#divergence' @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_wl2/ecore_wl2.c')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2.c b/src/lib/ecore_wl2/ecore_wl2.c
index bb3b00a1a0..767b5c1e9b 100644
--- a/src/lib/ecore_wl2/ecore_wl2.c
+++ b/src/lib/ecore_wl2/ecore_wl2.c
@@ -47,6 +47,7 @@ EAPI int ECORE_WL2_EVENT_WINDOW_ROTATION_CHANGE_REQUEST = 0;
47EAPI int ECORE_WL2_EVENT_WINDOW_ROTATION_CHANGE_DONE = 0; 47EAPI int ECORE_WL2_EVENT_WINDOW_ROTATION_CHANGE_DONE = 0;
48EAPI int ECORE_WL2_EVENT_AUX_HINT_ALLOWED = 0; 48EAPI int ECORE_WL2_EVENT_AUX_HINT_ALLOWED = 0;
49EAPI int ECORE_WL2_EVENT_WINDOW_SHOW = 0; 49EAPI int ECORE_WL2_EVENT_WINDOW_SHOW = 0;
50EAPI int ECORE_WL2_EVENT_WINDOW_HIDE = 0;
50 51
51EAPI int _ecore_wl2_event_window_www = -1; 52EAPI int _ecore_wl2_event_window_www = -1;
52EAPI int _ecore_wl2_event_window_www_drag = -1; 53EAPI int _ecore_wl2_event_window_www_drag = -1;
@@ -124,6 +125,7 @@ ecore_wl2_init(void)
124 ECORE_WL2_EVENT_WINDOW_ROTATION_CHANGE_DONE = ecore_event_type_new(); 125 ECORE_WL2_EVENT_WINDOW_ROTATION_CHANGE_DONE = ecore_event_type_new();
125 ECORE_WL2_EVENT_AUX_HINT_ALLOWED = ecore_event_type_new(); 126 ECORE_WL2_EVENT_AUX_HINT_ALLOWED = ecore_event_type_new();
126 ECORE_WL2_EVENT_WINDOW_SHOW = ecore_event_type_new(); 127 ECORE_WL2_EVENT_WINDOW_SHOW = ecore_event_type_new();
128 ECORE_WL2_EVENT_WINDOW_HIDE = ecore_event_type_new();
127 } 129 }
128 if (!no_session_recovery) 130 if (!no_session_recovery)
129 no_session_recovery = !!getenv("EFL_NO_WAYLAND_SESSION_RECOVERY"); 131 no_session_recovery = !!getenv("EFL_NO_WAYLAND_SESSION_RECOVERY");
@@ -188,7 +190,8 @@ ecore_wl2_shutdown(void)
188 ECORE_WL2_EVENT_WINDOW_ROTATION_CHANGE_REQUEST, 190 ECORE_WL2_EVENT_WINDOW_ROTATION_CHANGE_REQUEST,
189 ECORE_WL2_EVENT_WINDOW_ROTATION_CHANGE_DONE, 191 ECORE_WL2_EVENT_WINDOW_ROTATION_CHANGE_DONE,
190 ECORE_WL2_EVENT_AUX_HINT_ALLOWED, 192 ECORE_WL2_EVENT_AUX_HINT_ALLOWED,
191 ECORE_WL2_EVENT_WINDOW_SHOW); 193 ECORE_WL2_EVENT_WINDOW_SHOW,
194 ECORE_WL2_EVENT_WINDOW_HIDE);
192 195
193 /* shutdown Ecore_Event */ 196 /* shutdown Ecore_Event */
194 ecore_event_shutdown(); 197 ecore_event_shutdown();