wayland: Ensure to set gtk_surface dbus properties after hide()
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 25 Jan 2017 14:53:55 +0000 (15:53 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 25 Jan 2017 17:01:26 +0000 (18:01 +0100)
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

index d6292885d76bddb61d8ae81a3093c2f35bcc7286..755b813973413ad949b973fd79e6b1c8e206f979 100644 (file)
@@ -2528,6 +2528,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);