diff options
author | Jay Ta'ala <30424662+jtaala@users.noreply.github.com> | 2022-07-01 04:21:14 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-30 20:21:14 +0200 |
commit | ddc587933debf090c1b5493b8090e7b50b7cccbb (patch) | |
tree | 3f56aa91c8aa62068949d59e491dc54e6e9101a8 | |
parent | 458c148934773c693044518d141243a6f7596bc4 (diff) | |
download | i3-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-move | 1 | ||||
-rw-r--r-- | src/move.c | 3 |
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 @@ -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; } |