mirror of
				https://github.com/labwc/labwc.git
				synced 2025-10-29 05:40:24 -04:00 
			
		
		
		
	src/seat.c: small refactor
The condition server->input_mode != LAB_INPUT_STATE_PASSTHROUGH is enough to catch when window switcher is active.
This commit is contained in:
		
							parent
							
								
									0ef9906557
								
							
						
					
					
						commit
						8f8e734405
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -725,8 +725,7 @@ void | |||
| seat_focus_surface(struct seat *seat, struct wlr_surface *surface) | ||||
| { | ||||
| 	/* Don't update focus while window switcher, Move/Resize and menu interaction */ | ||||
| 	if (seat->server->osd_state.cycle_view || seat->server->input_mode | ||||
| 			!= LAB_INPUT_STATE_PASSTHROUGH) { | ||||
| 	if (seat->server->input_mode != LAB_INPUT_STATE_PASSTHROUGH) { | ||||
| 		return; | ||||
| 	} | ||||
| 	seat_focus(seat, surface, /*replace_exclusive_layer*/ false, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 tokyo4j
						tokyo4j