diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/evdev.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/evdev.c b/src/evdev.c index 275d6bc..7b06c91 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -1176,6 +1176,8 @@ EvdevProc(DeviceIntPtr device, int what) return EvdevOn(device); case DEVICE_OFF: + if (pEvdev->flags & EVDEV_INITIALIZED) + EvdevMBEmuFinalize(pInfo); if (pInfo->fd != -1) { if (pEvdev->grabDevice && ioctl(pInfo->fd, EVIOCGRAB, (void *)0)) |