diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2013-12-04 07:58:26 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2013-12-09 11:17:01 +1000 |
commit | 61243ada3e1e10f6d32a899a6cc595efa244eb25 (patch) | |
tree | 0a7951c52db9b5b5bf9b356c56816536cec60525 /src | |
parent | 09ac39309fbee01aa047dab1b0f577dc2571cdd1 (diff) |
eventcomm: ungrab the device on DeviceOff
For symmetry, the kernel should ungrab when we close the fd.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
[modified for the 1.7 branch which isn't using libevdev yet]
(cherry picked from commit 5d391e352f4e502ada6444a7ce860683e3480fbf)
Diffstat (limited to 'src')
-rw-r--r-- | src/eventcomm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/eventcomm.c b/src/eventcomm.c index 258a538..a9a344b 100644 --- a/src/eventcomm.c +++ b/src/eventcomm.c @@ -206,6 +206,7 @@ static Bool EventDeviceOffHook(InputInfoPtr pInfo) { UninitializeTouch(pInfo); + SYSCALL(ioctl(pInfo->fd, EVIOCGRAB, (pointer) 0)); return Success; } |