Xi: if deviceid is > 127 assume GE mask is for all devices (XiSelectEvent).
This commit is contained in:
parent
379f057646
commit
466f655219
10
Xi/xiselev.c
10
Xi/xiselev.c
|
@ -69,9 +69,13 @@ ProcXiSelectEvent(ClientPtr client)
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
rc = dixLookupDevice(&pDev, stuff->deviceid, client, DixReadAccess);
|
if (stuff->deviceid & (0x1 << 7)) /* all devices */
|
||||||
if (rc != Success)
|
pDev = NULL;
|
||||||
return rc;
|
else {
|
||||||
|
rc = dixLookupDevice(&pDev, stuff->deviceid, client, DixReadAccess);
|
||||||
|
if (rc != Success)
|
||||||
|
return rc;
|
||||||
|
}
|
||||||
|
|
||||||
GEWindowSetMask(client, pDev, pWin, IReqCode, stuff->mask);
|
GEWindowSetMask(client, pDev, pWin, IReqCode, stuff->mask);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user