[PATCH] Correct present_notify_msc vblank target
Axel Davy
axel.davy at ens.fr
Sat Oct 11 04:18:19 PDT 2014
When using present_notify_msc with current or past msc, we except it to respond right away.
It was not the case since it was waiting next vblank.
Signed-off-by: Axel Davy <axel.davy at ens.fr>
---
present/present.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/present/present.c b/present/present.c
index 47566c7..413a22f 100644
--- a/present/present.c
+++ b/present/present.c
@@ -756,7 +756,7 @@ present_pixmap(WindowPtr window,
}
} else {
target_msc = crtc_msc;
- if (!(options & PresentOptionAsync))
+ if (pixmap && !(options & PresentOptionAsync))
target_msc++;
}
}
--
2.1.0
More information about the xorg-devel
mailing list