Don't set a wrong border color when *_held_focus

This commit is contained in:
Bastien Dejean 2020-08-14 12:06:15 +02:00
parent 5298a91211
commit 3f12328f26

View file

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