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:46:55 -0400
committerChris Michael <cp.michael@samsung.com>2017-06-27 09:47:43 -0400
commit2f7f232582d19ed3786abb71b0f9a3924164c70f (patch)
tree5664ebc46c96cf6dcdfcc561b052618925b9c0c8 /src/lib/ecore_wl2/ecore_wl2.c
parent640caf1d9c7510064c78ced9021c55611a6e66b0 (diff)
ecore-wl2: Add client-side event for Window Deactivate
This patch adds and sends a client-side event for when a window gets deactivated. '#divergence' @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to '')
-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 4cecffab60..a4dd62eb80 100644
--- a/src/lib/ecore_wl2/ecore_wl2.c
+++ b/src/lib/ecore_wl2/ecore_wl2.c
@@ -49,6 +49,7 @@ EAPI 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; 50EAPI int ECORE_WL2_EVENT_WINDOW_HIDE = 0;
51EAPI int ECORE_WL2_EVENT_WINDOW_ACTIVATE = 0; 51EAPI int ECORE_WL2_EVENT_WINDOW_ACTIVATE = 0;
52EAPI int ECORE_WL2_EVENT_WINDOW_DEACTIVATE = 0;
52 53
53EAPI int _ecore_wl2_event_window_www = -1; 54EAPI int _ecore_wl2_event_window_www = -1;
54EAPI int _ecore_wl2_event_window_www_drag = -1; 55EAPI int _ecore_wl2_event_window_www_drag = -1;
@@ -128,6 +129,7 @@ ecore_wl2_init(void)
128 ECORE_WL2_EVENT_WINDOW_SHOW = ecore_event_type_new(); 129 ECORE_WL2_EVENT_WINDOW_SHOW = ecore_event_type_new();
129 ECORE_WL2_EVENT_WINDOW_HIDE = ecore_event_type_new(); 130 ECORE_WL2_EVENT_WINDOW_HIDE = ecore_event_type_new();
130 ECORE_WL2_EVENT_WINDOW_ACTIVATE = ecore_event_type_new(); 131 ECORE_WL2_EVENT_WINDOW_ACTIVATE = ecore_event_type_new();
132 ECORE_WL2_EVENT_WINDOW_DEACTIVATE = ecore_event_type_new();
131 } 133 }
132 if (!no_session_recovery) 134 if (!no_session_recovery)
133 no_session_recovery = !!getenv("EFL_NO_WAYLAND_SESSION_RECOVERY"); 135 no_session_recovery = !!getenv("EFL_NO_WAYLAND_SESSION_RECOVERY");
@@ -194,7 +196,8 @@ ecore_wl2_shutdown(void)
194 ECORE_WL2_EVENT_AUX_HINT_ALLOWED, 196 ECORE_WL2_EVENT_AUX_HINT_ALLOWED,
195 ECORE_WL2_EVENT_WINDOW_SHOW, 197 ECORE_WL2_EVENT_WINDOW_SHOW,
196 ECORE_WL2_EVENT_WINDOW_HIDE, 198 ECORE_WL2_EVENT_WINDOW_HIDE,
197 ECORE_WL2_EVENT_WINDOW_ACTIVATE); 199 ECORE_WL2_EVENT_WINDOW_ACTIVATE,
200 ECORE_WL2_EVENT_WINDOW_DEACTIVATE);
198 201
199 /* shutdown Ecore_Event */ 202 /* shutdown Ecore_Event */
200 ecore_event_shutdown(); 203 ecore_event_shutdown();