Xi: return BadDevice for master kbds and attached slaves in XIWarpPointer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
		
							parent
							
								
									8939ad2b2a
								
							
						
					
					
						commit
						61a6e1f074
					
				| 
						 | 
					@ -97,6 +97,13 @@ ProcXIWarpPointer(ClientPtr client)
 | 
				
			||||||
        return rc;
 | 
					        return rc;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if ((!IsMaster(pDev) && pDev->u.master) ||
 | 
				
			||||||
 | 
					        (IsMaster(pDev) && !IsPointerDevice(pDev)))
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        client->errorValue = stuff->deviceid;
 | 
				
			||||||
 | 
					        return BadDevice;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (stuff->dst_win != None)
 | 
					    if (stuff->dst_win != None)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        rc = dixLookupWindow(&dest, stuff->dst_win, client, DixGetAttrAccess);
 | 
					        rc = dixLookupWindow(&dest, stuff->dst_win, client, DixGetAttrAccess);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue