[gtk/wip/chergert/macos-fixes: 7/12] macos: handle NULL frame-clock when thawing




commit 66aa2b5753b881d4418b971fff1e2fb6cb0cf23e
Author: Christian Hergert <christian hergert me>
Date:   Sat Jan 29 16:19:57 2022 -0800

    macos: handle NULL frame-clock when thawing

 gdk/macos/gdkmacossurface.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gdk/macos/gdkmacossurface.c b/gdk/macos/gdkmacossurface.c
index 60f6fe2389..95bb990971 100644
--- a/gdk/macos/gdkmacossurface.c
+++ b/gdk/macos/gdkmacossurface.c
@@ -726,7 +726,8 @@ _gdk_macos_surface_thaw (GdkMacosSurface *self,
 
   gdk_surface_thaw_updates (GDK_SURFACE (self));
 
-  frame_clock = gdk_surface_get_frame_clock (GDK_SURFACE (self));
+  if (!(frame_clock = gdk_surface_get_frame_clock (GDK_SURFACE (self))))
+    return;
 
   if (self->pending_frame_counter)
     {


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