Xi: return deviceid as error value in XIQueryPointer.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
		
							parent
							
								
									b41dd4328b
								
							
						
					
					
						commit
						58fd28f6b6
					
				| 
						 | 
					@ -83,7 +83,10 @@ ProcXIQueryPointer(ClientPtr client)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    rc = dixLookupDevice(&pDev, stuff->deviceid, client, DixReadAccess);
 | 
					    rc = dixLookupDevice(&pDev, stuff->deviceid, client, DixReadAccess);
 | 
				
			||||||
    if (rc != Success)
 | 
					    if (rc != Success)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        client->errorValue = stuff->deviceid;
 | 
				
			||||||
        return rc;
 | 
					        return rc;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (pDev->valuator == NULL)
 | 
					    if (pDev->valuator == NULL)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue