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>
This commit is contained in:
parent
48cee2fd22
commit
e7c225aef6
|
@ -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
|
||||
|
|
|
@ -41,7 +41,7 @@ extern GrabPtr CreateGrab(int /* client */ ,
|
|||
enum InputLevel /* grabtype */ ,
|
||||
GrabMask * /* mask */ ,
|
||||
struct _GrabParameters * /* param */ ,
|
||||
int /* type */ ,
|
||||
int /* eventType */ ,
|
||||
KeyCode /* keybut */ ,
|
||||
WindowPtr /* confineTo */ ,
|
||||
CursorPtr /* cursor */ );
|
||||
|
|
Loading…
Reference in New Issue