summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Hopf <mhopf@suse.de>2008-10-14 14:19:29 +0200
committerMatthias Hopf <mhopf@suse.de>2008-10-14 14:19:29 +0200
commitf978146de9c798e7405a7a09c5b4421e9429bf91 (patch)
tree1d083a2017fa5fe8f5c71d40b05158bdc65448af
parent028e7d0001d4948e7b11a68d904c6b307a1ccfb3 (diff)
Revert "Grab mouse from kernel if possible."
This reverts commit 028e7d0001d4948e7b11a68d904c6b307a1ccfb3. The test turned out to be bogus, in fact, the patch had no effect. The used kernel mouse driver doesn't even allow grabbing...
-rw-r--r--src/vmmouse.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/vmmouse.c b/src/vmmouse.c
index 98f7047..bc0cb87 100644
--- a/src/vmmouse.c
+++ b/src/vmmouse.c
@@ -851,11 +851,6 @@ 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);
}
@@ -875,11 +870,6 @@ 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);