wayland: Invalidate our gtk_surface when we're unmapped

Otherwise if we get mapped again we'll try to use an invalid
gtk_surface and the compositor will disconnect us.

https://bugzilla.gnome.org/show_bug.cgi?id=753138
This commit is contained in:
Rui Matos 2015-08-01 17:08:30 +02:00
parent 61ba7adfc8
commit 36263076b2

View File

@ -1349,6 +1349,12 @@ gdk_wayland_window_hide_surface (GdkWindow *window)
_gdk_frame_clock_thaw (gdk_window_get_frame_clock (window));
}
if (impl->gtk_surface)
{
gtk_surface_destroy (impl->gtk_surface);
impl->gtk_surface = NULL;
}
wl_surface_destroy (impl->surface);
impl->surface = NULL;