summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2016-12-05 09:22:26 -0500
committerChris Michael <cp.michael@samsung.com>2016-12-05 09:22:26 -0500
commit4c7ff57cb2de24c05b32db3c9aaa2fe0a7e0059d (patch)
treea421e5e26bb9463a0e229c8d50174fefd842a786
parent5c1d6b106419fd4493e3bf1cef793a43a59009e9 (diff)
downloadefl-4c7ff57cb2de24c05b32db3c9aaa2fe0a7e0059d.tar.gz
ecore-wl2: When we hide a window, attach a NULL buffer to the surface
This patch essentially makes sure that the surface gets a NULL buffer attached to it when we are hiding. Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_window.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c b/src/lib/ecore_wl2/ecore_wl2_window.c
index 47f3fc85f8..37dd487016 100644
--- a/src/lib/ecore_wl2/ecore_wl2_window.c
+++ b/src/lib/ecore_wl2/ecore_wl2_window.c
@@ -450,6 +450,12 @@ ecore_wl2_window_hide(Ecore_Wl2_Window *window)
EINA_INLIST_FOREACH_SAFE(window->subsurfs, tmp, subsurf)
_ecore_wl2_subsurf_unmap(subsurf);
+ if (window->surface)
+ {
+ wl_surface_attach(window->surface, NULL, 0, 0);
+ wl_surface_commit(window->surface);
+ }
+
window->configure_serial = 0;
window->configure_ack = NULL;
}