From 61a6e1f074d9ff75d61446b946aab6c04019c287 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 3 Sep 2009 10:00:00 +1000 Subject: Xi: return BadDevice for master kbds and attached slaves in XIWarpPointer Signed-off-by: Peter Hutterer --- Xi/xiwarppointer.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Xi') diff --git a/Xi/xiwarppointer.c b/Xi/xiwarppointer.c index 88ba9fa66..7276e6faf 100644 --- a/Xi/xiwarppointer.c +++ b/Xi/xiwarppointer.c @@ -97,6 +97,13 @@ ProcXIWarpPointer(ClientPtr client) return rc; } + if ((!IsMaster(pDev) && pDev->u.master) || + (IsMaster(pDev) && !IsPointerDevice(pDev))) + { + client->errorValue = stuff->deviceid; + return BadDevice; + } + if (stuff->dst_win != None) { rc = dixLookupWindow(&dest, stuff->dst_win, client, DixGetAttrAccess); -- cgit v1.2.3