mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	sway/commands/move.c: arrange new workspace
When moving a container to a new workspace, the workspace's dimension
are left unset. Usually this doesn't matter, but when moving a floating
container to a new workspace on a different output, this leads to the
position of the container being calculated with 0, so the container ends
up halfway offscreen on the leftmost topmost monitor.
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
(cherry picked from commit f00f964abf)
			
			
This commit is contained in:
		
							parent
							
								
									b1c2155a8e
								
							
						
					
					
						commit
						a4927e4cb2
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -510,6 +510,7 @@ static struct cmd_results *cmd_move_container(bool no_auto_back_and_forth,
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			ws = workspace_create(NULL, ws_name);
 | 
								ws = workspace_create(NULL, ws_name);
 | 
				
			||||||
 | 
								arrange_workspace(ws);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		free(ws_name);
 | 
							free(ws_name);
 | 
				
			||||||
		struct sway_container *dst = seat_get_focus_inactive_tiling(seat, ws);
 | 
							struct sway_container *dst = seat_get_focus_inactive_tiling(seat, ws);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue