summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-03-25 20:44:44 +0000
committerMatthias Clasen <mclasen@redhat.com>2018-03-25 20:44:44 +0000
commit448d2502d9d230f68353c64dfca13e51fcac174a (patch)
tree4d9b8b5615ee8ed90d8da493bc555bf538d370e2
parent6bad307180127f1e4148b0bb0ee4c252686b3937 (diff)
parent77a5d00047febe4317518ff31e84e5c37499e4ff (diff)
downloadgtk+-448d2502d9d230f68353c64dfca13e51fcac174a.tar.gz
Merge branch 'bz773274' into 'master'
wayland: Don't paint if the window is unmapped See merge request GNOME/gtk!32
-rw-r--r--gdk/wayland/gdksurface-wayland.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c
index c756c9a3f8..d771fd1857 100644
--- a/gdk/wayland/gdksurface-wayland.c
+++ b/gdk/wayland/gdksurface-wayland.c
@@ -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)
{