[gtk/wip/chergert/quartz4u] macos: ignore destroyed surfaces



commit 2234ee06be60930f38f4f64a0d7041d7fc818841
Author: Christian Hergert <chergert redhat com>
Date:   Thu May 21 09:03:51 2020 -0700

    macos: ignore destroyed surfaces

 gdk/macos/gdkmacossurface.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/gdk/macos/gdkmacossurface.c b/gdk/macos/gdkmacossurface.c
index 6815e64934..2bff7dc236 100644
--- a/gdk/macos/gdkmacossurface.c
+++ b/gdk/macos/gdkmacossurface.c
@@ -62,6 +62,9 @@ _gdk_macos_surface_reposition_children (GdkMacosSurface *self)
 {
   g_assert (GDK_IS_MACOS_SURFACE (self));
 
+  if (GDK_SURFACE_DESTROYED (self))
+    return;
+
   if (!gdk_surface_get_mapped (GDK_SURFACE (self)))
     return;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]