broadway: Inherit frame clock from parent surface

This commit is contained in:
Alexander Larsson 2020-03-13 15:26:22 +01:00
parent b74a26b275
commit 9e2829756f

View File

@ -219,7 +219,10 @@ _gdk_broadway_display_create_surface (GdkDisplay *display,
GdkBroadwaySurface *impl;
GType type;
frame_clock = _gdk_frame_clock_idle_new ();
if (parent)
frame_clock = g_object_ref (gdk_surface_get_frame_clock (parent));
else
frame_clock = _gdk_frame_clock_idle_new ();
switch (surface_type)
{