mirror of
				https://github.com/swaywm/sway.git
				synced 2025-10-29 05:40:18 -04:00 
			
		
		
		
	Destroy containers when all views are removed
This commit is contained in:
		
							parent
							
								
									2231586569
								
							
						
					
					
						commit
						1669da719c
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -216,6 +216,10 @@ void destroy_view(swayc_t *view) { | |||
| 	} | ||||
| 
 | ||||
| 	arrange_windows(parent, -1, -1); | ||||
| 
 | ||||
| 	if (parent->children->length == 0 && parent->type == C_CONTAINER) { | ||||
| 		destroy_view(parent); | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
| void unfocus_all(swayc_t *container) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Drew DeVault
						Drew DeVault