mirror of
https://github.com/swaywm/sway.git
synced 2026-03-19 05:34:00 -04:00
Change workspace_layout to match i3 behavior
In i3, the workspace_layout command does not affect the workspace layout. Instead, new workspace level containers are wrapped in the desired layout and the workspace layout always defaults to the output orientation.
This commit is contained in:
parent
b4850876dc
commit
ece6a1d408
8 changed files with 51 additions and 35 deletions
|
|
@ -247,7 +247,7 @@ static void finalize_move(struct sway_seat *seat) {
|
|||
|
||||
// Moving container into empty workspace
|
||||
if (target_node->type == N_WORKSPACE && edge == WLR_EDGE_NONE) {
|
||||
workspace_add_tiling(new_ws, con);
|
||||
con = workspace_add_tiling(new_ws, con);
|
||||
} else if (target_node->type == N_CONTAINER) {
|
||||
// Moving container before/after another
|
||||
struct sway_container *target = target_node->sway_container;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue