mirror of
https://github.com/vale981/bspwm
synced 2025-03-05 09:51:38 -05:00
Remove obvious condition
This commit is contained in:
parent
fd46aab2fb
commit
584588d241
1 changed files with 1 additions and 1 deletions
2
tree.c
2
tree.c
|
@ -448,7 +448,7 @@ void unlink_node(desktop_t *d, node_t *n)
|
|||
if (n == d->last_focus) {
|
||||
d->last_focus = NULL;
|
||||
} else if (n == d->focus) {
|
||||
if (d->last_focus != NULL && d->last_focus != n)
|
||||
if (d->last_focus != NULL)
|
||||
d->focus = d->last_focus;
|
||||
else
|
||||
d->focus = (is_first_child(b) ? second_extrema(b) : first_extrema(b));
|
||||
|
|
Loading…
Add table
Reference in a new issue