[gtk/wip/chergert/macos-fixes: 1/4] macos: handle NULL frame-clock when thawing
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/macos-fixes: 1/4] macos: handle NULL frame-clock when thawing
- Date: Sun, 30 Jan 2022 01:10:45 +0000 (UTC)
commit 0cc4ec6622a0dd0fb0e832a5bac6682b873a4869
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]