From b7c9bd9cf276e92a73be57ff2ed32b47a80f13fb Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 16 Oct 2013 09:21:47 +1000 Subject: [PATCH] sync: supply the counter from IdleTimeBlockHandler The main idletime counter has an initialized deviceid, might as well be supplying it properly. Without this, we'd only ever check the XIAllDevices counter, so the wait would never be adjusted for the device-specific triggers. Signed-off-by: Peter Hutterer Reviewed-by: Adam Jackson Reviewed-by: Keith Packard --- Xext/sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Xext/sync.c b/Xext/sync.c index eaf063741..f8eb02a60 100644 --- a/Xext/sync.c +++ b/Xext/sync.c @@ -2624,7 +2624,7 @@ IdleTimeBlockHandler(pointer pCounter, struct timeval **wt, pointer LastSelectMa return; old_idle = counter->value; - IdleTimeQueryValue(NULL, &idle); + IdleTimeQueryValue(counter, &idle); counter->value = idle; /* push, so CheckTrigger works */ if (less && XSyncValueLessOrEqual(idle, *less)) {