diff --git a/Xi/xiallowev.c b/Xi/xiallowev.c index a8cf1b67f..4df9a1033 100644 --- a/Xi/xiallowev.c +++ b/Xi/xiallowev.c @@ -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; diff --git a/Xi/xigrabdev.c b/Xi/xigrabdev.c index de13256b0..20f4e5167 100644 --- a/Xi/xigrabdev.c +++ b/Xi/xigrabdev.c @@ -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; diff --git a/Xi/xisetdevfocus.c b/Xi/xisetdevfocus.c index 5945abd7b..7201e65cd 100644 --- a/Xi/xisetdevfocus.c +++ b/Xi/xisetdevfocus.c @@ -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)