Xi: fix a couple of wrong dixLookupDevice permission tags.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
0d947aa8e8
commit
c3c64978c4
|
@ -65,7 +65,7 @@ ProcXIAllowEvents(ClientPtr client)
|
|||
REQUEST(xXIAllowEventsReq);
|
||||
REQUEST_SIZE_MATCH(xXIAllowEventsReq);
|
||||
|
||||
ret = dixLookupDevice(&dev, stuff->deviceid, client, DixSetFocusAccess);
|
||||
ret = dixLookupDevice(&dev, stuff->deviceid, client, DixGetAttrAccess);
|
||||
if (ret != Success)
|
||||
return ret;
|
||||
|
||||
|
|
|
@ -70,7 +70,7 @@ ProcXIGrabDevice(ClientPtr client)
|
|||
REQUEST(xXIGrabDeviceReq);
|
||||
REQUEST_AT_LEAST_SIZE(xXIGrabDeviceReq);
|
||||
|
||||
ret = dixLookupDevice(&dev, stuff->deviceid, client, DixSetFocusAccess);
|
||||
ret = dixLookupDevice(&dev, stuff->deviceid, client, DixGrabAccess);
|
||||
if (ret != Success)
|
||||
return ret;
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@ ProcXIGetDeviceFocus(ClientPtr client)
|
|||
REQUEST(xXIGetDeviceFocusReq);
|
||||
REQUEST_AT_LEAST_SIZE(xXIGetDeviceFocusReq);
|
||||
|
||||
ret = dixLookupDevice(&dev, stuff->deviceid, client, DixSetFocusAccess);
|
||||
ret = dixLookupDevice(&dev, stuff->deviceid, client, DixGetFocusAccess);
|
||||
if (ret != Success)
|
||||
return ret;
|
||||
if (!dev->focus)
|
||||
|
|
Loading…
Reference in New Issue
Block a user