summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/ecore_wl2.c
diff options
context:
space:
mode:
authorWoochanlee <wc0917.lee@samsung.com>2020-05-26 11:49:16 -0400
committerChristopher Michael <devilhorns@comcast.net>2020-05-26 11:49:16 -0400
commit9ca13ef5c10904b620407ce8981fadf2a903b180 (patch)
treedda422045e9dc0ec1b1b6cefe915388b4aa66479 /src/lib/ecore_wl2/ecore_wl2.c
parentd584696f12c6d93e26923ad1ce45f3129b6162e6 (diff)
ecore_wl2 : Organize window creation/deletion events.
Summary: Add create / destroy events. Call hide event when the window terminated if the window was visible. Reviewers: devilhorns, Hermet, raster Reviewed By: devilhorns Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11878
Diffstat (limited to 'src/lib/ecore_wl2/ecore_wl2.c')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2.c b/src/lib/ecore_wl2/ecore_wl2.c
index 33e06873cd..a07d3ce27c 100644
--- a/src/lib/ecore_wl2/ecore_wl2.c
+++ b/src/lib/ecore_wl2/ecore_wl2.c
@@ -58,6 +58,8 @@ EAPI int ECORE_WL2_EVENT_WINDOW_ACTIVATE = 0;
58EAPI int ECORE_WL2_EVENT_WINDOW_DEACTIVATE = 0; 58EAPI int ECORE_WL2_EVENT_WINDOW_DEACTIVATE = 0;
59EAPI int ECORE_WL2_EVENT_WINDOW_ICONIFY_STATE_CHANGE = 0; 59EAPI int ECORE_WL2_EVENT_WINDOW_ICONIFY_STATE_CHANGE = 0;
60EAPI int ECORE_WL2_EVENT_WINDOW_OFFSCREEN = 0; 60EAPI int ECORE_WL2_EVENT_WINDOW_OFFSCREEN = 0;
61EAPI int ECORE_WL2_EVENT_WINDOW_CREATE = 0;
62EAPI int ECORE_WL2_EVENT_WINDOW_DESTROY = 0;
61 63
62EAPI int _ecore_wl2_event_window_www = -1; 64EAPI int _ecore_wl2_event_window_www = -1;
63EAPI int _ecore_wl2_event_window_www_drag = -1; 65EAPI int _ecore_wl2_event_window_www_drag = -1;
@@ -203,6 +205,8 @@ ecore_wl2_init(void)
203 ECORE_WL2_EVENT_WINDOW_DEACTIVATE = ecore_event_type_new(); 205 ECORE_WL2_EVENT_WINDOW_DEACTIVATE = ecore_event_type_new();
204 ECORE_WL2_EVENT_WINDOW_ICONIFY_STATE_CHANGE = ecore_event_type_new(); 206 ECORE_WL2_EVENT_WINDOW_ICONIFY_STATE_CHANGE = ecore_event_type_new();
205 ECORE_WL2_EVENT_WINDOW_OFFSCREEN = ecore_event_type_new(); 207 ECORE_WL2_EVENT_WINDOW_OFFSCREEN = ecore_event_type_new();
208 ECORE_WL2_EVENT_WINDOW_CREATE = ecore_event_type_new();
209 ECORE_WL2_EVENT_WINDOW_DESTROY = ecore_event_type_new();
206 210
207 if (!no_session_recovery) 211 if (!no_session_recovery)
208 no_session_recovery = !!getenv("EFL_NO_WAYLAND_SESSION_RECOVERY"); 212 no_session_recovery = !!getenv("EFL_NO_WAYLAND_SESSION_RECOVERY");
@@ -277,7 +281,9 @@ ecore_wl2_shutdown(void)
277 ECORE_WL2_EVENT_WINDOW_ACTIVATE, 281 ECORE_WL2_EVENT_WINDOW_ACTIVATE,
278 ECORE_WL2_EVENT_WINDOW_DEACTIVATE, 282 ECORE_WL2_EVENT_WINDOW_DEACTIVATE,
279 ECORE_WL2_EVENT_WINDOW_ICONIFY_STATE_CHANGE, 283 ECORE_WL2_EVENT_WINDOW_ICONIFY_STATE_CHANGE,
280 ECORE_WL2_EVENT_WINDOW_OFFSCREEN); 284 ECORE_WL2_EVENT_WINDOW_OFFSCREEN
285 ECORE_WL2_EVENT_WINDOW_CREATE,
286 ECORE_WL2_EVENT_WINDOW_DESTROY);
281 287
282 /* shutdown Ecore_Event */ 288 /* shutdown Ecore_Event */
283 ecore_event_shutdown(); 289 ecore_event_shutdown();