mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-20 06:59:50 -05:00
fix: fix focus animation error
This commit is contained in:
parent
e0f114af59
commit
f25386cca2
5 changed files with 175 additions and 112 deletions
|
|
@ -372,3 +372,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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue