summaryrefslogtreecommitdiff
path: root/hw/xwin/winsetsp.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2013-10-30 15:40:58 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2013-11-01 17:08:22 +1000
commitf36f5a65f639b6524191d888d5bf89e73027156c (patch)
tree37b818dbe97d8201b84e8d1c99b85c3a77080852 /hw/xwin/winsetsp.c
parente8961b718d82f1c081ec110d8d962f64e8406b82 (diff)
sync: fix corner-case in triggering idle alarms
ProcessInputEvent() resets the device idle times. If idle time was higher than the lower bracket, this should trigger an event in the idle time wakeup handler. If processing is slow, the idle time may advance past the lower bracket between the reset and the time the BlockHandler is called. In that case, we'd never schedule a wakeup to handle the event, causing us to randomly miss events. Ran tests with a neg transition trigger on 5ms with 200 repeats of the test and it succeeded. Anything below that gets a bit tricky to make sure the server sees the same idle time as the client usleeps for. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'hw/xwin/winsetsp.c')
0 files changed, 0 insertions, 0 deletions