summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Ta'ala <30424662+jtaala@users.noreply.github.com>2022-07-01 04:21:14 +1000
committerGitHub <noreply@github.com>2022-06-30 20:21:14 +0200
commitddc587933debf090c1b5493b8090e7b50b7cccbb (patch)
tree3f56aa91c8aa62068949d59e491dc54e6e9101a8
parent458c148934773c693044518d141243a6f7596bc4 (diff)
downloadi3-ddc587933debf090c1b5493b8090e7b50b7cccbb.tar.gz
i3-ddc587933debf090c1b5493b8090e7b50b7cccbb.zip
Split container parents should be redrawn when swapping child containers (within parent) (#4765)
Redraw split container parents when swapping child containers Split container parents should be redrawn when swapping child containers so they show the correct window ordering (note without this higher level split parent container titles will only update when changing layout or moving child cons in/out.
-rw-r--r--release-notes/bugfixes/7-update-parent-con-title-on-sibling-move1
-rw-r--r--src/move.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/release-notes/bugfixes/7-update-parent-con-title-on-sibling-move b/release-notes/bugfixes/7-update-parent-con-title-on-sibling-move
new file mode 100644
index 00000000..7bd57dfe
--- /dev/null
+++ b/release-notes/bugfixes/7-update-parent-con-title-on-sibling-move
@@ -0,0 +1 @@
+update parent split con titles when child con swaps position with another child con
diff --git a/src/move.c b/src/move.c
index 85062d65..1a161647 100644
--- a/src/move.c
+++ b/src/move.c
@@ -330,6 +330,9 @@ void tree_move(Con *con, direction_t direction) {
TAILQ_SWAP(con, swap, &(swap->parent->nodes_head), nodes);
}
+ /* redraw parents to ensure all parent split container titles are updated correctly */
+ con_force_split_parents_redraw(con);
+
ipc_send_window_event("move", con);
return;
}