[gtk+] wayland: Ensure to set gtk_surface dbus properties after hide()



commit 4ebf98f440cda4b5e5b6fc72c9623acbeca1f81b
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Jan 25 15:53:55 2017 +0100

    wayland: Ensure to set gtk_surface dbus properties after hide()
    
    Currently hiding destroys the wl_surface and all related interfaces,
    (including the gtk_surface1) so the next time the GdkWindow is mapped,
    we don't bother to set the DBus properties. Toggle the check off so
    it's actually issued again after the GdkWindow gets a gtk_surface1.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=773686

 gdk/wayland/gdkwindow-wayland.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index 674dac5..384a5eb 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -2513,6 +2513,7 @@ gdk_wayland_window_hide_surface (GdkWindow *window)
         {
           gtk_surface1_destroy (impl->display_server.gtk_surface);
           impl->display_server.gtk_surface = NULL;
+          impl->application.was_set = FALSE;
         }
 
       wl_surface_destroy (impl->display_server.wl_surface);


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