summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2013-10-16 09:21:47 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2013-10-17 13:09:46 +1000
commit9ebaf8bd4ce4c88ae73b98b527f88606157fcb5d (patch)
treeac45341b40f154e827f0b4e1db477266cde116e4
parent6f84ba6a9aecaeb22e5cd4f16f713bdeb442c43d (diff)
sync: supply the counter from IdleTimeBlockHandler
The main idletime counter has an initialized deviceid, might as well be supplying it properly. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--Xext/sync.c2
1 files changed, 1 insertions, 1 deletions
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)) {