From e487babd525ef1bd016ec7b283fa08cf9e6c6f4f Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 12 Dec 2013 14:52:35 -0800 Subject: [PATCH] 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 --- present/present.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/present/present.c b/present/present.c index 4c0d63baf..3caa8b771 100644 --- a/present/present.c +++ b/present/present.c @@ -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;