summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/vmmouse.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/vmmouse.c b/src/vmmouse.c
index bc0cb87..98f7047 100644
--- a/src/vmmouse.c
+++ b/src/vmmouse.c
@@ -851,6 +851,11 @@ VMMouseDeviceControl(DeviceIntPtr device, int mode)
xf86Msg(X_INFO, "VMWARE(0): vmmouse enabled\n");
}
}
+#ifdef EVIOCGRAB
+ if (ioctl(pInfo->fd, EVIOCGRAB, (void *)1))
+ xf86Msg(X_WARNING, "%s: Grab failed (%s)\n", pInfo->name,
+ strerror(errno));
+#endif
xf86FlushInput(pInfo->fd);
xf86AddEnabledDevice(pInfo);
}
@@ -870,6 +875,11 @@ VMMouseDeviceControl(DeviceIntPtr device, int mode)
mPriv->vmmouseAvailable = FALSE;
}
+#ifdef EVIOCGRAB
+ if (ioctl(pInfo->fd, EVIOCGRAB, (void *)0))
+ xf86Msg(X_WARNING, "%s: Ungrab failed (%s)\n", pInfo->name,
+ strerror(errno));
+#endif
xf86RemoveEnabledDevice(pInfo);
if (pMse->buffer) {
XisbFree(pMse->buffer);