dix: return BadValue as error in SetModifierMapping.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
		
							parent
							
								
									603db34337
								
							
						
					
					
						commit
						45baef0b77
					
				| 
						 | 
				
			
			@ -1422,7 +1422,7 @@ ProcSetModifierMapping(ClientPtr client)
 | 
			
		|||
    rc = change_modmap(client, PickKeyboard(client), (KeyCode *)&stuff[1],
 | 
			
		||||
                       stuff->numKeyPerModifier);
 | 
			
		||||
    if (rc == MappingFailed || rc == -1)
 | 
			
		||||
        rc = BadValue;
 | 
			
		||||
        return BadValue;
 | 
			
		||||
    if (rc != Success && rc != MappingSuccess && rc != MappingFailed &&
 | 
			
		||||
        rc != MappingBusy)
 | 
			
		||||
	return rc;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue