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
|
GrabPtr
|
||||||
CreateGrab(int client, DeviceIntPtr device, DeviceIntPtr modDevice,
|
CreateGrab(int client, DeviceIntPtr device, DeviceIntPtr modDevice,
|
||||||
WindowPtr window, enum InputLevel grabtype, GrabMask *mask,
|
WindowPtr window, enum InputLevel grabtype, GrabMask *mask,
|
||||||
GrabParameters *param, int type,
|
GrabParameters *param, int eventType,
|
||||||
KeyCode keybut, /* key or button */
|
KeyCode keybut, /* key or button */
|
||||||
WindowPtr confineTo, CursorPtr cursor)
|
WindowPtr confineTo, CursorPtr cursor)
|
||||||
{
|
{
|
||||||
|
@ -240,7 +240,7 @@ CreateGrab(int client, DeviceIntPtr device, DeviceIntPtr modDevice,
|
||||||
grab->modifiersDetail.exact = param->modifiers;
|
grab->modifiersDetail.exact = param->modifiers;
|
||||||
grab->modifiersDetail.pMask = NULL;
|
grab->modifiersDetail.pMask = NULL;
|
||||||
grab->modifierDevice = modDevice;
|
grab->modifierDevice = modDevice;
|
||||||
grab->type = type;
|
grab->type = eventType;
|
||||||
grab->grabtype = grabtype;
|
grab->grabtype = grabtype;
|
||||||
grab->detail.exact = keybut;
|
grab->detail.exact = keybut;
|
||||||
grab->detail.pMask = NULL;
|
grab->detail.pMask = NULL;
|
||||||
|
@ -251,7 +251,6 @@ CreateGrab(int client, DeviceIntPtr device, DeviceIntPtr modDevice,
|
||||||
if (grabtype == XI2)
|
if (grabtype == XI2)
|
||||||
xi2mask_merge(grab->xi2mask, mask->xi2mask);
|
xi2mask_merge(grab->xi2mask, mask->xi2mask);
|
||||||
return grab;
|
return grab;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -41,7 +41,7 @@ extern GrabPtr CreateGrab(int /* client */ ,
|
||||||
enum InputLevel /* grabtype */ ,
|
enum InputLevel /* grabtype */ ,
|
||||||
GrabMask * /* mask */ ,
|
GrabMask * /* mask */ ,
|
||||||
struct _GrabParameters * /* param */ ,
|
struct _GrabParameters * /* param */ ,
|
||||||
int /* type */ ,
|
int /* eventType */ ,
|
||||||
KeyCode /* keybut */ ,
|
KeyCode /* keybut */ ,
|
||||||
WindowPtr /* confineTo */ ,
|
WindowPtr /* confineTo */ ,
|
||||||
CursorPtr /* cursor */ );
|
CursorPtr /* cursor */ );
|
||||||
|
|
Loading…
Reference in New Issue