mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-04 05:10:13 +01:00
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 <peter.hutterer@who-t.net>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit b7c9bd9cf2)
This commit is contained in:
parent
b47c02f216
commit
47e30b3649
1 changed files with 1 additions and 1 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue