mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
present: Don't abandon presents which are already queued for flip
Presents which are not marked 'queued' and are in the window present list are waiting for the flip event; discarding those won't work very well (it'll end up trashing displayed content for the next frame), so skip over those when looking for duplicate frame presents Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
@@ -689,6 +689,9 @@ present_pixmap(WindowPtr window,
|
||||
if (!vblank->pixmap)
|
||||
continue;
|
||||
|
||||
if (!vblank->queued)
|
||||
continue;
|
||||
|
||||
if (vblank->crtc != target_crtc || vblank->target_msc != target_msc)
|
||||
continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user