forked from AuroraMiddleware/gtk
x11: Always request frame updates
This ensures that the frame clock gets updated with correct presentation times even if nothing was drawn. This is necessary for benchmarking but would also be relevant for videos that want to sync to the frame clock but draw frames a lot less.
This commit is contained in:
parent
7201e63120
commit
c13fff8adb
@ -406,6 +406,10 @@ gdk_x11_surface_end_frame (GdkSurface *surface)
|
||||
clock = gdk_surface_get_frame_clock (surface);
|
||||
timings = gdk_frame_clock_get_current_timings (clock);
|
||||
|
||||
/* Make sure we request timing updates even if nothing was damaged.
|
||||
* We want the frame clock to be accurate. */
|
||||
gdk_x11_surface_pre_damage (surface);
|
||||
|
||||
impl->toplevel->in_frame = FALSE;
|
||||
|
||||
if (impl->toplevel->current_counter_value % 2 == 1)
|
||||
|
Loading…
Reference in New Issue
Block a user