aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2024-06-29 11:00:09 +0200
committerSimon Ser <contact@emersion.fr>2024-08-22 23:41:33 +0200
commitf00f964abf0eae36a1cce03c532115319499e570 (patch)
treee59faf4a2a7ec618fc9bc67339a8e943443204b6
parent7288f77bbe275825a0e0b011db873d9367782af0 (diff)
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>
-rw-r--r--sway/commands/move.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/commands/move.c b/sway/commands/move.c
index ff656cfb..ad106c64 100644
--- a/sway/commands/move.c
+++ b/sway/commands/move.c
@@ -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);