mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 00:38:00 +02:00
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
3 changed files with 3 additions and 3 deletions
|
|
@ -65,7 +65,7 @@ ProcXIAllowEvents(ClientPtr client)
|
||||||
REQUEST(xXIAllowEventsReq);
|
REQUEST(xXIAllowEventsReq);
|
||||||
REQUEST_SIZE_MATCH(xXIAllowEventsReq);
|
REQUEST_SIZE_MATCH(xXIAllowEventsReq);
|
||||||
|
|
||||||
ret = dixLookupDevice(&dev, stuff->deviceid, client, DixSetFocusAccess);
|
ret = dixLookupDevice(&dev, stuff->deviceid, client, DixGetAttrAccess);
|
||||||
if (ret != Success)
|
if (ret != Success)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,7 @@ ProcXIGrabDevice(ClientPtr client)
|
||||||
REQUEST(xXIGrabDeviceReq);
|
REQUEST(xXIGrabDeviceReq);
|
||||||
REQUEST_AT_LEAST_SIZE(xXIGrabDeviceReq);
|
REQUEST_AT_LEAST_SIZE(xXIGrabDeviceReq);
|
||||||
|
|
||||||
ret = dixLookupDevice(&dev, stuff->deviceid, client, DixSetFocusAccess);
|
ret = dixLookupDevice(&dev, stuff->deviceid, client, DixGrabAccess);
|
||||||
if (ret != Success)
|
if (ret != Success)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,7 @@ ProcXIGetDeviceFocus(ClientPtr client)
|
||||||
REQUEST(xXIGetDeviceFocusReq);
|
REQUEST(xXIGetDeviceFocusReq);
|
||||||
REQUEST_AT_LEAST_SIZE(xXIGetDeviceFocusReq);
|
REQUEST_AT_LEAST_SIZE(xXIGetDeviceFocusReq);
|
||||||
|
|
||||||
ret = dixLookupDevice(&dev, stuff->deviceid, client, DixSetFocusAccess);
|
ret = dixLookupDevice(&dev, stuff->deviceid, client, DixGetFocusAccess);
|
||||||
if (ret != Success)
|
if (ret != Success)
|
||||||
return ret;
|
return ret;
|
||||||
if (!dev->focus)
|
if (!dev->focus)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue