mirror of
				https://github.com/gnif/LookingGlass.git
				synced 2025-10-31 04:31:57 +00:00 
			
		
		
		
	[client] wayland: fix attempt to confine when pointer is locked
This fixes the following crash when attempt to toggle capture at the
right after closing the overlay:
    zwp_pointer_constraints_v1@12: error 1: a pointer constraint with a wl_pointer of the same wl_seat is already on this surface
			
			
This commit is contained in:
		| @@ -465,7 +465,7 @@ void waylandGrabPointer(void) | ||||
|  | ||||
|   INTERLOCKED_SECTION(wlWm.confineLock, | ||||
|   { | ||||
|     if (!wlWm.confinedPointer) | ||||
|     if (!wlWm.confinedPointer && !wlWm.lockedPointer) | ||||
|     { | ||||
|       wlWm.confinedPointer = zwp_pointer_constraints_v1_confine_pointer( | ||||
|           wlWm.pointerConstraints, wlWm.surface, wlWm.pointer, NULL, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Quantum
					Quantum