mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-05 02:10:13 +01:00
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
1 changed files with 0 additions and 8 deletions
|
|
@ -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…
Add table
Reference in a new issue