fix: fix focus animation error

This commit is contained in:
DreamMaoMao
2025-11-01 12:08:39 +08:00
parent 8f706688de
commit 6fdb962786
5 changed files with 174 additions and 111 deletions

View File

@@ -360,3 +360,21 @@ Client *get_next_stack_client(Client *c, bool reverse) {
}
return NULL;
}
float *get_border_color(Client *c) {
if (c->isurgent) {
return urgentcolor;
} else if (c->is_in_scratchpad && selmon && c == selmon->sel) {
return scratchpadcolor;
} else if (c->isglobal && selmon && c == selmon->sel) {
return globalcolor;
} else if (c->isoverlay && selmon && c == selmon->sel) {
return overlaycolor;
} else if (c->ismaximizescreen && selmon && c == selmon->sel) {
return maximizescreencolor;
} else if (selmon && c == selmon->sel) {
return focuscolor;
} else {
return bordercolor;
}
}