projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
505e10f
)
macos: do not inherit parents frame clock
author
Christian Hergert
<christian@hergert.me>
Fri, 25 Feb 2022 22:02:06 +0000
(14:02 -0800)
committer
Christian Hergert
<christian@hergert.me>
Mon, 28 Feb 2022 19:36:27 +0000
(11:36 -0800)
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
patch
|
blob
|
history
diff --git
a/gdk/macos/gdkmacossurface.c
b/gdk/macos/gdkmacossurface.c
index cdc6054bff2a24b33732e7655337dbbe4965831b..d032c37e215b6cc4bb61001a8a222ca45cd34a5a 100644
(file)
--- 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)
{