mirror of
https://github.com/vale981/bspwm
synced 2025-03-05 09:51:38 -05:00
Update vacant state when swapping nodes
This commit is contained in:
parent
177ea353c4
commit
38316b61a0
1 changed files with 5 additions and 0 deletions
5
tree.c
5
tree.c
|
@ -546,6 +546,11 @@ void swap_nodes(node_t *n1, node_t *n2)
|
|||
|
||||
n1->parent = pn2;
|
||||
n2->parent = pn1;
|
||||
|
||||
if (n1->vacant != n2->vacant) {
|
||||
update_vacant_state(n1->parent);
|
||||
update_vacant_state(n2->parent);
|
||||
}
|
||||
}
|
||||
|
||||
void transfer_node(desktop_t *ds, desktop_t *dd, node_t *n)
|
||||
|
|
Loading…
Add table
Reference in a new issue