[PATCH xserver] sync: Fix delta value check
Louis-Francis Ratté-Boulianne
lfrb at collabora.com
Wed Sep 27 05:24:28 UTC 2017
While transitionning from CARD64 to int64, the GreaterThan call
as mistakenly been transformed into ">=". That was at least
causing problems with Mutter.
Signed-off-by: Louis-Francis Ratté-Boulianne <lfrb at collabora.com>
---
Xext/sync.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Xext/sync.c b/Xext/sync.c
index 5c79d9e67..45dab6ac7 100644
--- a/Xext/sync.c
+++ b/Xext/sync.c
@@ -865,7 +865,7 @@ SyncChangeAlarmAttributes(ClientPtr client, SyncAlarm * pAlarm, Mask mask,
||
(((pAlarm->trigger.test_type == XSyncNegativeComparison) ||
(pAlarm->trigger.test_type == XSyncNegativeTransition))
- && pAlarm->delta >= 0)
+ && pAlarm->delta > 0)
) {
return BadMatch;
}
--
2.13.0
More information about the xorg-devel
mailing list