summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis-Francis Ratté-Boulianne <lfrb@collabora.com>2017-09-27 01:24:28 -0400
committerAdam Jackson <ajax@redhat.com>2017-09-27 11:06:09 -0400
commit8060196a3e80a3c0ad2c0abbe459416821cd366c (patch)
treec56600e702829dd75f976e332395ecc98f519a22
parent37f4e7651a2fd51efa613a08a1e705553be33e76 (diff)
sync: Fix delta value check
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@collabora.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
-rw-r--r--Xext/sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xext/sync.c b/Xext/sync.c
index 822c205a7..37d41f224 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;
}