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.
This commit is contained in:
Jay Ta'ala 2022-07-01 04:21:14 +10:00 committed by GitHub
parent 458c148934
commit ddc587933d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1 @@
update parent split con titles when child con swaps position with another child con

View File

@ -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;
}