mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-19 03:00:34 +01:00
Xi: if deviceid is > 127 assume GE mask is for all devices (XiSelectEvent).
This commit is contained in:
parent
379f057646
commit
466f655219
1 changed files with 7 additions and 3 deletions
10
Xi/xiselev.c
10
Xi/xiselev.c
|
|
@ -69,9 +69,13 @@ ProcXiSelectEvent(ClientPtr client)
|
|||
if (rc != Success)
|
||||
return rc;
|
||||
|
||||
rc = dixLookupDevice(&pDev, stuff->deviceid, client, DixReadAccess);
|
||||
if (rc != Success)
|
||||
return rc;
|
||||
if (stuff->deviceid & (0x1 << 7)) /* all devices */
|
||||
pDev = NULL;
|
||||
else {
|
||||
rc = dixLookupDevice(&pDev, stuff->deviceid, client, DixReadAccess);
|
||||
if (rc != Success)
|
||||
return rc;
|
||||
}
|
||||
|
||||
GEWindowSetMask(client, pDev, pWin, IReqCode, stuff->mask);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue