Xi: passively grabbing slave devices must be possible.
There's use-cases where this is useful, so take the check out preventing that. Reported-by: Thomas Jaeger Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
235cf5713a
commit
29ec146251
|
@ -110,14 +110,6 @@ ProcXIPassiveGrabDevice(ClientPtr client)
|
|||
return BadValue;
|
||||
}
|
||||
|
||||
/* Can't grab for modifiers on an attached slave device */
|
||||
if (!IsMaster(dev))
|
||||
{
|
||||
if (!dev->u.master)
|
||||
stuff->paired_device_mode = GrabModeAsync;
|
||||
else if (dev->u.master && stuff->num_modifiers)
|
||||
return BadDevice;
|
||||
}
|
||||
if ((stuff->mask_len * 4) > XI_LASTEVENT)
|
||||
{
|
||||
unsigned char *bits = (unsigned char*)&stuff[1];
|
||||
|
|
Loading…
Reference in New Issue
Block a user