summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/ecore_wl2.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-01-11 12:22:01 -0500
committerChris Michael <cp.michael@samsung.com>2017-01-11 12:36:33 -0500
commit755c50a84e58d95cbb2ba85f6474bc0a7bc0774f (patch)
tree3025157a7e7a32abd6510facea73f1c32648a6cc /src/lib/ecore_wl2/ecore_wl2.c
parent6c9dc2a5ba61f0409001115d0d31adc1e5c48e48 (diff)
ecore-wl2: Add event to raise when window configure is completed.
Small patch to create and raise a new event letting ecore_evas know when the window has been configured. With the addition of xdg_shell v6 support, we cannot commit a surface with an existing buffer until the surface has been configured. This patch allows us to raise an event to ecore_evas when the surface has been configured, so we can then attach a buffer to it. ref T5090 Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2.c b/src/lib/ecore_wl2/ecore_wl2.c
index bbae13fc6b..362ef38a3a 100644
--- a/src/lib/ecore_wl2/ecore_wl2.c
+++ b/src/lib/ecore_wl2/ecore_wl2.c
@@ -35,6 +35,7 @@ EAPI int ECORE_WL2_EVENT_SEAT_NAME_CHANGED = 0;
35EAPI int ECORE_WL2_EVENT_SEAT_CAPABILITIES_CHANGED = 0; 35EAPI int ECORE_WL2_EVENT_SEAT_CAPABILITIES_CHANGED = 0;
36EAPI int ECORE_WL2_EVENT_DEVICE_ADDED = 0; 36EAPI int ECORE_WL2_EVENT_DEVICE_ADDED = 0;
37EAPI int ECORE_WL2_EVENT_DEVICE_REMOVED = 0; 37EAPI int ECORE_WL2_EVENT_DEVICE_REMOVED = 0;
38EAPI int ECORE_WL2_EVENT_WINDOW_CONFIGURE_COMPLETE = 0;
38 39
39EAPI int _ecore_wl2_event_window_www = -1; 40EAPI int _ecore_wl2_event_window_www = -1;
40EAPI int _ecore_wl2_event_window_www_drag = -1; 41EAPI int _ecore_wl2_event_window_www_drag = -1;
@@ -99,6 +100,7 @@ ecore_wl2_init(void)
99 ECORE_WL2_EVENT_DEVICE_REMOVED = ecore_event_type_new(); 100 ECORE_WL2_EVENT_DEVICE_REMOVED = ecore_event_type_new();
100 _ecore_wl2_event_window_www = ecore_event_type_new(); 101 _ecore_wl2_event_window_www = ecore_event_type_new();
101 _ecore_wl2_event_window_www_drag = ecore_event_type_new(); 102 _ecore_wl2_event_window_www_drag = ecore_event_type_new();
103 ECORE_WL2_EVENT_WINDOW_CONFIGURE_COMPLETE = ecore_event_type_new();
102 } 104 }
103 if (!no_session_recovery) 105 if (!no_session_recovery)
104 no_session_recovery = !!getenv("EFL_NO_WAYLAND_SESSION_RECOVERY"); 106 no_session_recovery = !!getenv("EFL_NO_WAYLAND_SESSION_RECOVERY");
@@ -152,6 +154,7 @@ ecore_wl2_shutdown(void)
152 ECORE_WL2_EVENT_SEAT_CAPABILITIES_CHANGED = 0; 154 ECORE_WL2_EVENT_SEAT_CAPABILITIES_CHANGED = 0;
153 ECORE_WL2_EVENT_DEVICE_ADDED = 0; 155 ECORE_WL2_EVENT_DEVICE_ADDED = 0;
154 ECORE_WL2_EVENT_DEVICE_REMOVED = 0; 156 ECORE_WL2_EVENT_DEVICE_REMOVED = 0;
157 ECORE_WL2_EVENT_WINDOW_CONFIGURE_COMPLETE = 0;
155 158
156 /* shutdown Ecore_Event */ 159 /* shutdown Ecore_Event */
157 ecore_event_shutdown(); 160 ecore_event_shutdown();