Xi: fix a couple of wrong dixLookupDevice permission tags.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2009-05-06 15:05:06 +10:00
parent 0d947aa8e8
commit c3c64978c4
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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)