[gtk+] wayland: Ensure we keep our internal state when hiding a window with no surface



commit 84e3aa016f437219bec833b3b728dcf8d76d02b7
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Sep 16 18:36:18 2013 -0400

    wayland: Ensure we keep our internal state when hiding a window with no surface
    
    We need to keep track of the mapped variable here.

 gdk/wayland/gdkwindow-wayland.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index b5e9036..6fdbc77 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -1123,8 +1123,9 @@ gdk_wayland_window_hide_surface (GdkWindow *window,
       impl->shell_surface = NULL;
       cairo_surface_destroy (impl->server_surface);
       impl->server_surface = NULL;
-      impl->mapped = FALSE;
     }
+
+  impl->mapped = FALSE;
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]