[gtk/wip/chergert/for-4-6: 10/56] macos: do not inherit parents frame clock
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/for-4-6: 10/56] macos: do not inherit parents frame clock
- Date: Wed, 16 Mar 2022 19:25:44 +0000 (UTC)
commit 48b408e2c320a5dd7de578a0a8febdb14cab733e
Author: Christian Hergert <christian hergert me>
Date: Fri Feb 25 14:02:06 2022 -0800
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.
gdk/macos/gdkmacossurface.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]