mirror of
https://github.com/vale981/bspwm
synced 2025-03-06 10:11:43 -05:00
Always update focus and history when inserting
This commit is contained in:
parent
6dfff24ce8
commit
687c9962f1
1 changed files with 3 additions and 1 deletions
4
tree.c
4
tree.c
|
@ -429,7 +429,7 @@ void insert_node(monitor_t *m, desktop_t *d, node_t *n)
|
|||
node_t *focus = d->focus;
|
||||
|
||||
if (focus == NULL) {
|
||||
d->root = d->focus = n;
|
||||
d->root = n;
|
||||
} else {
|
||||
node_t *dad = make_node();
|
||||
node_t *fopar = focus->parent;
|
||||
|
@ -515,6 +515,8 @@ void insert_node(monitor_t *m, desktop_t *d, node_t *n)
|
|||
if (focus->vacant)
|
||||
update_vacant_state(fopar);
|
||||
}
|
||||
d->focus = n;
|
||||
history_add(d->history, n);
|
||||
put_status();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue