devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=4c7ff57cb2de24c05b32db3c9aaa2fe0a7e0059d

commit 4c7ff57cb2de24c05b32db3c9aaa2fe0a7e0059d
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Mon Dec 5 09:22:26 2016 -0500

    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.mich...@samsung.com>
---
 src/lib/ecore_wl2/ecore_wl2_window.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c 
b/src/lib/ecore_wl2/ecore_wl2_window.c
index 47f3fc8..37dd487 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;
 }

-- 


Reply via email to