forked from AuroraMiddleware/gtk
broadway: Inherit frame clock from parent surface
This commit is contained in:
parent
b74a26b275
commit
9e2829756f
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user