forked from AuroraMiddleware/gtk
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:
parent
61ba7adfc8
commit
36263076b2
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user