Skip to content

Commit

Permalink
sway/commands/move.c: arrange new workspace
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
navi-desu authored and emersion committed Aug 22, 2024
1 parent 7288f77 commit f00f964
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sway/commands/move.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,7 @@ static struct cmd_results *cmd_move_container(bool no_auto_back_and_forth,
}
}
ws = workspace_create(NULL, ws_name);
arrange_workspace(ws);
}
free(ws_name);
struct sway_container *dst = seat_get_focus_inactive_tiling(seat, ws);
Expand Down

0 comments on commit f00f964

Please sign in to comment.