Files
xserver_xsdl/dix
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
2003-11-14 16:49:22 +00:00
2003-11-14 15:54:54 +00:00
2012-12-05 18:09:48 -06:00
2013-09-10 13:28:24 -04:00
2012-03-21 13:54:42 -07:00
2012-11-19 12:12:23 +10:00
2012-03-21 13:54:42 -07:00
2013-05-15 19:17:57 +10:00
2013-07-23 23:56:58 +01:00
2013-07-23 23:56:58 +01:00
2009-08-28 23:29:05 -04:00
2012-03-21 13:54:42 -07:00
2013-07-23 23:56:58 +01:00
2012-03-22 11:33:42 +10:00