diff --git a/Xi/xipassivegrab.c b/Xi/xipassivegrab.c
index d91170241e34cb78f65cd344c8234ff37b934d31..89a285f6196508abb6c85db7a616bc60cc3f207e 100644 (file)
--- a/Xi/xipassivegrab.c
+++ b/Xi/xipassivegrab.c
if (stuff->grab_type != XIGrabtypeButton &&
stuff->grab_type != XIGrabtypeKeycode &&
stuff->grab_type != XIGrabtypeEnter &&
- stuff->grab_type != XIGrabtypeFocusIn)
+ stuff->grab_type != XIGrabtypeFocusIn &&
+ stuff->grab_type != XIGrabtypeTouchBegin)
{
client->errorValue = stuff->grab_type;
return BadValue;
}
if ((stuff->grab_type == XIGrabtypeEnter ||
- stuff->grab_type == XIGrabtypeFocusIn) && stuff->detail != 0)
+ stuff->grab_type == XIGrabtypeFocusIn ||
+ stuff->grab_type == XIGrabtypeTouchBegin) && stuff->detail != 0)
{
client->errorValue = stuff->detail;
return BadValue;
case XIGrabtypeKeycode: tempGrab->type = XI_KeyPress; break;
case XIGrabtypeEnter: tempGrab->type = XI_Enter; break;
case XIGrabtypeFocusIn: tempGrab->type = XI_FocusIn; break;
+ case XIGrabtypeTouchBegin: tempGrab->type = XI_TouchBegin; break;
}
tempGrab->grabtype = XI2;
tempGrab->modifierDevice = mod_dev;