mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 01:20:05 +01:00
Xi: allow passive keygrabs on the XIAll(Master)Devices fake devices
They don't have a KeyClassRec, but we must still allow passive grabs on them. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Tested-by: Bastien Nocera <hadess@hadess.net> Reviewed-by: Daniel Stone <daniel@fooishbar.org> (cherry picked from commit22715e465b) (cherry picked from commit2f2d871ccd)
This commit is contained in:
parent
0c4d7fca59
commit
6ded98becb
1 changed files with 1 additions and 1 deletions
|
|
@ -1483,7 +1483,7 @@ GrabKey(ClientPtr client, DeviceIntPtr dev, DeviceIntPtr modifier_device,
|
|||
rc = CheckGrabValues(client, param);
|
||||
if (rc != Success)
|
||||
return rc;
|
||||
if (k == NULL)
|
||||
if ((dev->id != XIAllDevices && dev->id != XIAllMasterDevices) && k == NULL)
|
||||
return BadMatch;
|
||||
if (grabtype == GRABTYPE_XI)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue