Merge branch 'bz773274' into 'master'

wayland: Don't paint if the window is unmapped

See merge request GNOME/gtk!32
This commit is contained in:
Matthias Clasen 2018-03-25 20:44:44 +00:00
commit 448d2502d9

View File

@ -2521,6 +2521,7 @@ gdk_wayland_surface_hide_surface (GdkSurface *surface)
unset_transient_for_exported (surface);
_gdk_wayland_surface_clear_saved_size (surface);
drop_cairo_surfaces (surface);
impl->pending_commit = FALSE;
impl->mapped = FALSE;
}
@ -2796,7 +2797,6 @@ gdk_wayland_surface_destroy (GdkSurface *surface,
g_return_if_fail (!foreign_destroy);
gdk_wayland_surface_hide_surface (surface);
drop_cairo_surfaces (surface);
if (surface->parent == NULL)
{