From: Christian Hergert Date: Wed, 2 Mar 2022 08:42:09 +0000 (-0800) Subject: macos: use parent frame clock again X-Git-Tag: archive/raspbian/4.8.3+ds-2+rpi1~3^2~20^2~4^2~347^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=cf25f2c04b8da91bb8d232f783e58873e0439b10;p=gtk4.git 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. --- diff --git a/gdk/macos/gdkmacossurface.c b/gdk/macos/gdkmacossurface.c index 4bf2601f45..1c971d9e95 100644 --- a/gdk/macos/gdkmacossurface.c +++ b/gdk/macos/gdkmacossurface.c @@ -626,7 +626,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) {