From 466f6552190d1b83d66ebfd71e07921ed6210ee2 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 23 Jan 2008 16:11:31 +1030 Subject: [PATCH] Xi: if deviceid is > 127 assume GE mask is for all devices (XiSelectEvent). --- Xi/xiselev.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Xi/xiselev.c b/Xi/xiselev.c index f24dd3625..2bfbd82c5 100644 --- a/Xi/xiselev.c +++ b/Xi/xiselev.c @@ -69,9 +69,13 @@ ProcXiSelectEvent(ClientPtr client) if (rc != Success) return rc; - rc = dixLookupDevice(&pDev, stuff->deviceid, client, DixReadAccess); - if (rc != Success) - return rc; + if (stuff->deviceid & (0x1 << 7)) /* all devices */ + pDev = NULL; + else { + rc = dixLookupDevice(&pDev, stuff->deviceid, client, DixReadAccess); + if (rc != Success) + return rc; + } GEWindowSetMask(client, pDev, pWin, IReqCode, stuff->mask);