summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorEnrico Weigelt, metux IT consult <info@metux.net>2024-09-04 13:46:01 +0200
committerPovilas Kanapickas <povilas@radix.lt>2024-10-10 13:50:57 +0000
commite7c225aef6821678f0a568b66f302a1a54654e5e (patch)
tree0a2cf2eec181f3d69edb544afe629319c7c9eb0e /dix
parent48cee2fd22d1d84f5f4ee0b316bd3ad7359c015f (diff)
dix: CreateGrab() rename "type" parameter to "eventType"
Make it clear what exactly this parameter is for. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
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