diff options
author | Zephaniah E. Hull <warp@aehallh.com> | 2006-04-08 21:55:17 +0000 |
---|---|---|
committer | Zephaniah E. Hull <warp@aehallh.com> | 2006-04-08 21:55:17 +0000 |
commit | 880879015bf1eec49d374274d644ba015a6a4610 (patch) | |
tree | bcf70bfc75f469b682d7b4861b910eace1b71cde /src/evdev.c | |
parent | Remove evdev_abs.c and evdev_rel.c. Added evdev_axes.c. (diff) | |
download | xf86-input-evdev-880879015bf1eec49d374274d644ba015a6a4610.tar.gz xf86-input-evdev-880879015bf1eec49d374274d644ba015a6a4610.tar.bz2 xf86-input-evdev-880879015bf1eec49d374274d644ba015a6a4610.zip |
Dropped the xorg-xserver 1.0.99.901 requirement. (Things were tweaked to
mostly work for older servers again.)
Close the device properly on read errer.
Minimal inotify support, not ideal yet, but...
Minimal inotify support, not ideal yet, but...
Minimal inotify support, not ideal yet, but...
Diffstat (limited to 'src/evdev.c')
-rw-r--r-- | src/evdev.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/evdev.c b/src/evdev.c index 7179c04..94ff353 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -93,6 +93,11 @@ EvdevReadInput(InputInfoPtr pInfo) * event, so len != sizeof ev is an error. */ xf86Msg(X_ERROR, "Read error: %s (%d, %d != %ld)\n", strerror(errno), errno, len, sizeof (ev)); + if (len < 0) { + evdevDevicePtr pEvdev = pInfo->private; + pEvdev->callback(pEvdev->pInfo->dev, DEVICE_OFF); + pEvdev->seen--; + } break; } |