summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorStrake <strake888@gmail.com>2013-10-17 23:20:20 -0500
committerPeter Hutterer <peter.hutterer@who-t.net>2013-10-21 14:08:06 +1000
commit83bb366e71ef41165998eed2934208f84714a37e (patch)
tree6e3547903130f5307639335cb48fab7d563bb5b6 /hw
parentf8662a133690773692dfa392ecfa3b8b56af8fa9 (diff)
unbreak KdEnableInput
pi = ki = 0 here, so not follow them. Signed-off-by: Strake <strake888@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'hw')
-rw-r--r--hw/kdrive/src/kinput.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/hw/kdrive/src/kinput.c b/hw/kdrive/src/kinput.c
index 527c7a2ef..d845830cc 100644
--- a/hw/kdrive/src/kinput.c
+++ b/hw/kdrive/src/kinput.c
@@ -308,21 +308,22 @@ KdEnableInput(void)
kdInputEnabled = TRUE;
+ ev.any.time = GetTimeInMillis();
+
for (ki = kdKeyboards; ki; ki = ki->next) {
if (ki->driver && ki->driver->Enable)
(*ki->driver->Enable) (ki);
+ /* reset screen saver */
+ NoticeEventTime (&ev, ki->dixdev);
}
for (pi = kdPointers; pi; pi = pi->next) {
if (pi->driver && pi->driver->Enable)
(*pi->driver->Enable) (pi);
+ /* reset screen saver */
+ NoticeEventTime (&ev, pi->dixdev);
}
- /* reset screen saver */
- ev.any.time = GetTimeInMillis();
- NoticeEventTime(&ev, pi->dixdev);
- NoticeEventTime(&ev, ki->dixdev);
-
OsReleaseSIGIO();
}