mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Only consider tiling views for gaps outer
This commit is contained in:
		
							parent
							
								
									4bebee620f
								
							
						
					
					
						commit
						5e9c61ac23
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
					@ -624,7 +624,10 @@ void workspace_add_gaps(struct sway_workspace *ws) {
 | 
				
			||||||
	if (config->smart_gaps) {
 | 
						if (config->smart_gaps) {
 | 
				
			||||||
		struct sway_seat *seat = input_manager_get_default_seat(input_manager);
 | 
							struct sway_seat *seat = input_manager_get_default_seat(input_manager);
 | 
				
			||||||
		struct sway_container *focus =
 | 
							struct sway_container *focus =
 | 
				
			||||||
			seat_get_focus_inactive_view(seat, &ws->node);
 | 
								seat_get_focus_inactive_tiling(seat, ws);
 | 
				
			||||||
 | 
							if (focus && !focus->view) {
 | 
				
			||||||
 | 
								focus = seat_get_focus_inactive_view(seat, &focus->node);
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
		if (focus && focus->view && view_is_only_visible(focus->view)) {
 | 
							if (focus && focus->view && view_is_only_visible(focus->view)) {
 | 
				
			||||||
			return;
 | 
								return;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue