mirror of
https://github.com/vale981/bspwm
synced 2025-03-04 17:31:39 -05:00
Don't set a wrong border color when *_held_focus
This commit is contained in:
parent
5298a91211
commit
3f12328f26
1 changed files with 6 additions and 2 deletions
|
@ -1569,8 +1569,12 @@ bool swap_nodes(monitor_t *m1, desktop_t *d1, node_t *n1, monitor_t *m2, desktop
|
|||
draw_border(n1, is_descendant(n1, d2->focus), (m2 == mon));
|
||||
}
|
||||
} else {
|
||||
draw_border(n1, is_descendant(n1, d2->focus), (m2 == mon));
|
||||
draw_border(n2, is_descendant(n2, d1->focus), (m1 == mon));
|
||||
if (!n1_held_focus) {
|
||||
draw_border(n1, is_descendant(n1, d2->focus), (m2 == mon));
|
||||
}
|
||||
if (!n2_held_focus) {
|
||||
draw_border(n2, is_descendant(n2, d1->focus), (m1 == mon));
|
||||
}
|
||||
}
|
||||
|
||||
arrange(m1, d1);
|
||||
|
|
Loading…
Add table
Reference in a new issue