Blame SOURCES/0003-animcur-Return-the-next-interval-directly-from-the-t.patch
|
|
28a1ec |
From 8c72c85c76a003beaad9fe841ec4338dacd4b265 Mon Sep 17 00:00:00 2001
|
|
|
28a1ec |
From: Adam Jackson <ajax@redhat.com>
|
|
|
28a1ec |
Date: Thu, 26 Oct 2017 13:53:06 -0400
|
|
|
28a1ec |
Subject: [PATCH xserver 3/6] animcur: Return the next interval directly from
|
|
|
28a1ec |
the timer callback
|
|
|
28a1ec |
|
|
|
28a1ec |
If the return value is non-zero here, DoTimer() will automatically rearm
|
|
|
28a1ec |
the timer for the new (relative) delay. 'soonest' is in absolute time,
|
|
|
28a1ec |
so subtract off 'now' and return that.
|
|
|
28a1ec |
|
|
|
28a1ec |
Reviewed-by: Robert Morell <rmorell@nvidia.com>
|
|
|
28a1ec |
Tested-by: Robert Morell <rmorell@nvidia.com>
|
|
|
28a1ec |
Signed-off-by: Adam Jackson <ajax@redhat.com>
|
|
|
28a1ec |
(cherry picked from commit cc3241a712684f8c7147f5688e9ee3ecb5a93b87)
|
|
|
28a1ec |
---
|
|
|
28a1ec |
render/animcur.c | 5 ++---
|
|
|
28a1ec |
1 file changed, 2 insertions(+), 3 deletions(-)
|
|
|
28a1ec |
|
|
|
28a1ec |
diff --git a/render/animcur.c b/render/animcur.c
|
|
|
28a1ec |
index 3f85f9a4f..26a6026ae 100644
|
|
|
28a1ec |
--- a/render/animcur.c
|
|
|
28a1ec |
+++ b/render/animcur.c
|
|
|
28a1ec |
@@ -169,10 +169,9 @@ AnimCurTimerNotify(OsTimerPtr timer, CARD32 now, void *arg)
|
|
|
28a1ec |
}
|
|
|
28a1ec |
|
|
|
28a1ec |
if (activeDevice)
|
|
|
28a1ec |
- TimerSet(as->timer, TimerAbsolute, soonest, AnimCurTimerNotify, pScreen);
|
|
|
28a1ec |
- else
|
|
|
28a1ec |
- as->timer_set = FALSE;
|
|
|
28a1ec |
+ return soonest - now;
|
|
|
28a1ec |
|
|
|
28a1ec |
+ as->timer_set = FALSE;
|
|
|
28a1ec |
return 0;
|
|
|
28a1ec |
}
|
|
|
28a1ec |
|
|
|
28a1ec |
--
|
|
|
28a1ec |
2.14.3
|