Skip to content

Commit

Permalink
Fixed the multiple window movement issue from i3#5382
Browse files Browse the repository at this point in the history
  • Loading branch information
slyshot committed Jun 1, 2023
1 parent a715c03 commit 2d0e488
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/move.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,14 @@ void tree_move(Con *con, direction_t direction) {
/* 1: get the first parent with the same orientation */

if (con->type == CT_WORKSPACE) {
DLOG("Not moving workspace\n");
return;
layout_t preserved_layout;
if (con->last_split_layout == L_DEFAULT) {
preserved_layout = (con->layout != L_DEFAULT ? con->layout : L_SPLITH);
} else {
preserved_layout = con->last_split_layout;
}
con_set_layout(con, preserved_layout);
con = TAILQ_FIRST(&(con->nodes_head));
}

if (con->fullscreen_mode == CF_GLOBAL) {
Expand Down

0 comments on commit 2d0e488

Please sign in to comment.