Files
xserver_xsdl/Xext
Peter Hutterer 06b87aa528 sync: if the idle time was reset, force alarms to trigger (#70476)
The time between the idle reset and the IdleTimeWakeupHandler to be called is
indeterminate. Clients with an PositiveTransition or NegativeTransition alarm
on a low threshold may miss an alarm.

Work around this by keeping a reset flag for each device. When the
WakeupHandler triggers and the reset flag is set, we force a re-calculation of
everything and pretend the current idle time is zero. Immediately after is the
next calculation with the real idle time.

Relatively reproducible test case: Set up a XSyncNegativeTransition alarm for
a threshold of 1 ms. May trigger, may not.

X.Org Bug 70476 <http://bugs.freedesktop.org/show_bug.cgi?id=70476>

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
2013-10-18 16:44:32 +10:00
..
2012-03-21 13:54:42 -07:00
2012-07-10 00:42:10 -07:00
2012-03-21 13:54:42 -07:00
2012-05-24 15:52:38 +10:00
2012-07-10 00:01:49 -07:00
2013-09-10 13:28:24 -04:00
2012-11-05 13:25:08 -06:00
2012-03-21 13:54:42 -07:00
2012-03-21 13:54:42 -07:00
2012-11-05 13:25:08 -06:00
2012-03-21 13:54:42 -07:00
2012-03-21 13:54:42 -07:00
2012-03-21 13:54:42 -07:00
2013-02-15 11:58:27 +10:00
2013-04-16 13:54:59 +10:00