projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edc6790
)
macos: use parent frame clock again
author
Christian Hergert
<christian@hergert.me>
Wed, 2 Mar 2022 08:42:09 +0000
(
00:42
-0800)
committer
Christian Hergert
<chergert@redhat.com>
Wed, 16 Mar 2022 19:25:09 +0000
(12:25 -0700)
We do actually need the parent frame clock here because it is the way we
ensure that we get layout called for our popup surfaces at the same time
as the parent surface.
gdk/macos/gdkmacossurface.c
patch
|
blob
|
history
diff --git
a/gdk/macos/gdkmacossurface.c
b/gdk/macos/gdkmacossurface.c
index 385775fe58c5322d6d79c3cdeabb74ffd2c81547..8a1cf3747f5e782ae1afbaf2de9252a7f264aeea 100644
(file)
--- a/
gdk/macos/gdkmacossurface.c
+++ b/
gdk/macos/gdkmacossurface.c
@@
-621,7
+621,10
@@
_gdk_macos_surface_new (GdkMacosDisplay *display,
g_return_val_if_fail (GDK_IS_MACOS_DISPLAY (display), NULL);
- frame_clock = _gdk_frame_clock_idle_new ();
+ if (parent != NULL)
+ frame_clock = g_object_ref (parent->frame_clock);
+ else
+ frame_clock = _gdk_frame_clock_idle_new ();
switch (surface_type)
{