fix: fix border color change when swithc mon focus

This commit is contained in:
DreamMaoMao
2025-11-14 12:15:34 +08:00
parent 16296898ce
commit d85f4375c8
4 changed files with 13 additions and 5 deletions

View File

@@ -374,7 +374,10 @@ Client *get_next_stack_client(Client *c, bool reverse) {
}
float *get_border_color(Client *c) {
if (c->isurgent) {
if (c->mon != selmon) {
return bordercolor;
} else if (c->isurgent) {
return urgentcolor;
} else if (c->is_in_scratchpad && selmon && c == selmon->sel) {
return scratchpadcolor;