Skip to content

Commit

Permalink
Don't set a wrong border color when *_held_focus
Browse files Browse the repository at this point in the history
  • Loading branch information
baskerville committed Aug 14, 2020
1 parent 5298a91 commit 3f12328
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3f12328

Please sign in to comment.