summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Xi/extgrbdev.c17
-rw-r--r--dix/events.c12
-rw-r--r--include/dix.h3
3 files changed, 2 insertions, 30 deletions
diff --git a/Xi/extgrbdev.c b/Xi/extgrbdev.c
index 72f887958..6458404b7 100644
--- a/Xi/extgrbdev.c
+++ b/Xi/extgrbdev.c
@@ -107,19 +107,13 @@ ProcXExtendedGrabDevice(ClientPtr client)
REQUEST(xExtendedGrabDeviceReq);
REQUEST_AT_LEAST_SIZE(xExtendedGrabDeviceReq);
- if (stuff->ungrab)
- {
- REQUEST_SIZE_MATCH(xExtendedGrabDeviceReq);
- }
-
rep.repType = X_Reply;
rep.RepType = X_ExtendedGrabDevice;
rep.sequenceNumber = client->sequence;
rep.length = 0;
- if (!stuff->ungrab && /* other fields are undefined for ungrab */
- (stuff->length != (sizeof(xExtendedGrabDeviceReq) >> 2) +
- stuff->event_count + 2 * stuff->generic_event_count))
+ if (stuff->length != (sizeof(xExtendedGrabDeviceReq) >> 2) +
+ stuff->event_count + 2 * stuff->generic_event_count)
{
errval = 0;
rc = BadLength;
@@ -131,13 +125,6 @@ ProcXExtendedGrabDevice(ClientPtr client)
goto cleanup;
}
-
- if (stuff->ungrab)
- {
- ExtUngrabDevice(client, dev);
- goto cleanup;
- }
-
rc = dixLookupWindow(&grab_window,
stuff->grab_window,
client,
diff --git a/dix/events.c b/dix/events.c
index bf2df9f44..0b9b76884 100644
--- a/dix/events.c
+++ b/dix/events.c
@@ -6604,15 +6604,3 @@ ExtGrabDevice(ClientPtr client,
return GrabSuccess;
}
-
-_X_EXPORT int
-ExtUngrabDevice(ClientPtr client, DeviceIntPtr dev)
-{
- GrabInfoPtr grabinfo = &dev->deviceGrab;
- if (grabinfo->grab && SameClient(grabinfo->grab, client))
- (*grabinfo->DeactivateGrab)(dev);
- return GrabSuccess;
-}
-
-
-
diff --git a/include/dix.h b/include/dix.h
index 079645d0e..1ed4af02e 100644
--- a/include/dix.h
+++ b/include/dix.h
@@ -698,7 +698,4 @@ extern int ExtGrabDevice(ClientPtr client,
CursorPtr cursor,
Mask xi_mask,
GenericMaskPtr ge_masks);
-extern int ExtUngrabDevice(ClientPtr client,
- DeviceIntPtr dev);
-
#endif /* DIX_H */