dix: print out an error when core type can't be converted.
Helps a bit in tracking down bugs.
This commit is contained in:
		
							parent
							
								
									2a988ed75b
								
							
						
					
					
						commit
						b0bf4308ac
					
				|  | @ -304,6 +304,9 @@ XItoCoreType(int xitype) | |||
|         coretype = KeyPress; | ||||
|     else if (xitype == DeviceKeyRelease) | ||||
|         coretype = KeyRelease; | ||||
| 
 | ||||
|     if (coretype == 0) | ||||
|         ErrorF("[dix] Cannot convert type %d to core.\n", xitype); | ||||
|     return coretype; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue