summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
Diffstat (limited to 'dix')
-rw-r--r--dix/grabs.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/dix/grabs.c b/dix/grabs.c
index 5a85a2d56..8bef1c6ac 100644
--- a/dix/grabs.c
+++ b/dix/grabs.c
@@ -217,7 +217,7 @@ AllocGrab(const GrabPtr src)
GrabPtr
CreateGrab(int client, DeviceIntPtr device, DeviceIntPtr modDevice,
WindowPtr window, enum InputLevel grabtype, GrabMask *mask,
- GrabParameters *param, int type,
+ GrabParameters *param, int eventType,
KeyCode keybut, /* key or button */
WindowPtr confineTo, CursorPtr cursor)
{
@@ -240,7 +240,7 @@ CreateGrab(int client, DeviceIntPtr device, DeviceIntPtr modDevice,
grab->modifiersDetail.exact = param->modifiers;
grab->modifiersDetail.pMask = NULL;
grab->modifierDevice = modDevice;
- grab->type = type;
+ grab->type = eventType;
grab->grabtype = grabtype;
grab->detail.exact = keybut;
grab->detail.pMask = NULL;
@@ -251,7 +251,6 @@ CreateGrab(int client, DeviceIntPtr device, DeviceIntPtr modDevice,
if (grabtype == XI2)
xi2mask_merge(grab->xi2mask, mask->xi2mask);
return grab;
-
}
void