dix: don't try to activate a passive grab on top of an active one.
If we already have an active grab on the device, don't attempt to activate another one. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
		
							parent
							
								
									ff1d6244eb
								
							
						
					
					
						commit
						18ae486708
					
				|  | @ -3393,6 +3393,9 @@ CheckPassiveGrabsOnWindow( | |||
| #define XI2_MATCH        0x4 | ||||
|     int match = 0; | ||||
| 
 | ||||
|     if (device->deviceGrab.grab) | ||||
|         return FALSE; | ||||
| 
 | ||||
|     if (!grab) | ||||
| 	return FALSE; | ||||
|     /* Fill out the grab details, but leave the type for later before
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue