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.6.5+ds-1+rpi1~1^2~19^2~3^2~7^2~46 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=48b408e2c320a5dd7de578a0a8febdb14cab733e;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 bdf5335ef5..cf9d7067f8 100644 --- a/gdk/macos/gdkmacossurface.c +++ b/gdk/macos/gdkmacossurface.c @@ -553,10 +553,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) {