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.
This commit is contained in:
Christian Hergert
2022-02-25 14:02:06 -08:00
committed by Christian Hergert
parent 433de2849d
commit 48b408e2c3

View File

@@ -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)
{