mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Merge pull request #2585 from RyanDwyer/fix-move-across-outputs
Fix crash when moving view across outputs
This commit is contained in:
		
						commit
						2eec9740bd
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -117,7 +117,8 @@ static void container_move_to_container_from_direction(
 | 
			
		|||
		struct sway_container *container, struct sway_container *destination,
 | 
			
		||||
		enum movement_direction move_dir) {
 | 
			
		||||
	if (destination->view) {
 | 
			
		||||
		if (destination->parent == container->parent) {
 | 
			
		||||
		if (destination->parent == container->parent &&
 | 
			
		||||
				destination->workspace == container->workspace) {
 | 
			
		||||
			wlr_log(WLR_DEBUG, "Swapping siblings");
 | 
			
		||||
			list_t *siblings = container_get_siblings(container);
 | 
			
		||||
			int container_index = list_find(siblings, container);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue