From c3c64978c4a231a3a8c18211d0716df875c75efa Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 6 May 2009 15:05:06 +1000 Subject: [PATCH] Xi: fix a couple of wrong dixLookupDevice permission tags. Signed-off-by: Peter Hutterer --- Xi/xiallowev.c | 2 +- Xi/xigrabdev.c | 2 +- Xi/xisetdevfocus.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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)