From 755c50a84e58d95cbb2ba85f6474bc0a7bc0774f Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Wed, 11 Jan 2017 12:22:01 -0500 Subject: 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 --- src/lib/ecore_wl2/ecore_wl2.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lib/ecore_wl2/ecore_wl2.c') 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; EAPI int ECORE_WL2_EVENT_SEAT_CAPABILITIES_CHANGED = 0; EAPI int ECORE_WL2_EVENT_DEVICE_ADDED = 0; EAPI int ECORE_WL2_EVENT_DEVICE_REMOVED = 0; +EAPI int ECORE_WL2_EVENT_WINDOW_CONFIGURE_COMPLETE = 0; EAPI int _ecore_wl2_event_window_www = -1; EAPI int _ecore_wl2_event_window_www_drag = -1; @@ -99,6 +100,7 @@ ecore_wl2_init(void) ECORE_WL2_EVENT_DEVICE_REMOVED = ecore_event_type_new(); _ecore_wl2_event_window_www = ecore_event_type_new(); _ecore_wl2_event_window_www_drag = ecore_event_type_new(); + ECORE_WL2_EVENT_WINDOW_CONFIGURE_COMPLETE = ecore_event_type_new(); } if (!no_session_recovery) no_session_recovery = !!getenv("EFL_NO_WAYLAND_SESSION_RECOVERY"); @@ -152,6 +154,7 @@ ecore_wl2_shutdown(void) ECORE_WL2_EVENT_SEAT_CAPABILITIES_CHANGED = 0; ECORE_WL2_EVENT_DEVICE_ADDED = 0; ECORE_WL2_EVENT_DEVICE_REMOVED = 0; + ECORE_WL2_EVENT_WINDOW_CONFIGURE_COMPLETE = 0; /* shutdown Ecore_Event */ ecore_event_shutdown(); -- cgit v1.2.1