diff options
author | Peter Hutterer <peter.hutterer@redhat.com> | 2008-10-28 12:09:26 +1030 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@redhat.com> | 2008-10-29 13:25:46 +1030 |
commit | a43ab4999b9cad10f77aa6c703d3c61b754f1fd4 (patch) | |
tree | 27e1f7f21b3f09269994a930de060ec2d495d7e0 | |
parent | af096e8c5d8b425f725a37bf4a98e205e70716e9 (diff) |
Flush input after re-opening the fd.
Suggested by Julien Cristau.
Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
-rw-r--r-- | src/evdev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/evdev.c b/src/evdev.c index 26ae0a1..ea83afc 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -1007,6 +1007,7 @@ EvdevOn(DeviceIntPtr device) pEvdev->reopen_timer = TimerSet(NULL, 0, 100, EvdevReopenTimer, pInfo); } else { + xf86FlushInput(pInfo->fd); xf86AddEnabledDevice(pInfo); EvdevMBEmuOn(pInfo); pEvdev->flags |= EVDEV_INITIALIZED; |