[gtk/wip/chergert/for-4-6: 33/56] macos: use parent frame clock again
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/for-4-6: 33/56] macos: use parent frame clock again
- Date: Wed, 16 Mar 2022 19:25:45 +0000 (UTC)
commit c2d1a21f9c38aa467346629fa11354661449dd77
Author: Christian Hergert <christian hergert me>
Date: Wed Mar 2 00:42:09 2022 -0800
macos: use parent frame clock again
We do actually need the parent frame clock here because it is the way we
ensure that we get layout called for our popup surfaces at the same time
as the parent surface.
gdk/macos/gdkmacossurface.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gdk/macos/gdkmacossurface.c b/gdk/macos/gdkmacossurface.c
index 385775fe58..8a1cf3747f 100644
--- a/gdk/macos/gdkmacossurface.c
+++ b/gdk/macos/gdkmacossurface.c
@@ -621,7 +621,10 @@ _gdk_macos_surface_new (GdkMacosDisplay *display,
g_return_val_if_fail (GDK_IS_MACOS_DISPLAY (display), NULL);
- frame_clock = _gdk_frame_clock_idle_new ();
+ if (parent != NULL)
+ frame_clock = g_object_ref (parent->frame_clock);
+ else
+ frame_clock = _gdk_frame_clock_idle_new ();
switch (surface_type)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]