From: Carlos Garnacho Date: Wed, 25 Jan 2017 14:53:55 +0000 (+0100) Subject: wayland: Ensure to set gtk_surface dbus properties after hide() X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~65^2~39^2~843 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=baa83e975375c74e87d2b50fcad4b62f50f0d31f;p=gtk%2B3.0.git 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 --- diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c index d6292885d7..755b813973 100644 --- a/gdk/wayland/gdkwindow-wayland.c +++ b/gdk/wayland/gdkwindow-wayland.c @@ -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);