mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Fix crash when reaping a workspace
It wasn't returning the surviving container.
This commit is contained in:
		
							parent
							
								
									095ca75769
								
							
						
					
					
						commit
						2438f5f050
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -173,6 +173,9 @@ struct sway_container *container_reap_empty(struct sway_container *con) {
 | 
			
		|||
	}
 | 
			
		||||
	if (con && con->type == C_WORKSPACE) {
 | 
			
		||||
		workspace_consider_destroy(con);
 | 
			
		||||
		if (con->destroying) {
 | 
			
		||||
			con = con->parent;
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	return con;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue