mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	A layer-shell will only be focused if it is non-null
This commit is contained in:
		
							parent
							
								
									e2cbbb5413
								
							
						
					
					
						commit
						00d846fb91
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -212,7 +212,9 @@ void arrange_layers(struct sway_output *output) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	struct sway_seat *seat;
 | 
						struct sway_seat *seat;
 | 
				
			||||||
	wl_list_for_each(seat, &server.input->seats, link) {
 | 
						wl_list_for_each(seat, &server.input->seats, link) {
 | 
				
			||||||
		seat_set_focus_layer(seat, topmost ? topmost->layer_surface : NULL);
 | 
							if (topmost != NULL) {
 | 
				
			||||||
 | 
								seat_set_focus_layer(seat, topmost->layer_surface);
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue