From: Christian Hergert Date: Fri, 25 Feb 2022 22:02:06 +0000 (-0800) Subject: macos: do not inherit parents frame clock X-Git-Tag: archive/raspbian/4.8.3+ds-2+rpi1~3^2~20^2~4^2~353^2~14 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=03882ef8e5ca7c391d482d0ca1c51d142e7ec472;p=gtk4.git macos: do not inherit parents frame clock Windows can end up on different monitors despite having a parent or transient-for ancestor. We want them to be driven by the CVDisplayLink for the best-monitor, and so this needs to be unshared. --- diff --git a/gdk/macos/gdkmacossurface.c b/gdk/macos/gdkmacossurface.c index cdc6054bff..d032c37e21 100644 --- a/gdk/macos/gdkmacossurface.c +++ b/gdk/macos/gdkmacossurface.c @@ -558,10 +558,7 @@ _gdk_macos_surface_new (GdkMacosDisplay *display, g_return_val_if_fail (GDK_IS_MACOS_DISPLAY (display), NULL); - if (parent != NULL) - frame_clock = g_object_ref (gdk_surface_get_frame_clock (parent)); - else - frame_clock = _gdk_frame_clock_idle_new (); + frame_clock = _gdk_frame_clock_idle_new (); switch (surface_type) {