summaryrefslogtreecommitdiffhomepage
path: root/patch/bar_flexwintitle.c
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2021-05-21 10:16:49 +0200
committerbakkeby <[email protected]>2021-05-21 10:18:41 +0200
commit9072ef28a42051f306f2722004aab4d1061bdb37 (patch)
tree04b51dff311e4734d3a7308f49fc55711d787a25 /patch/bar_flexwintitle.c
parent9a0fb6c83b4b830f84f3c1294bd89a3023b69c70 (diff)
downloaddwm-flexipatch-9072ef28a42051f306f2722004aab4d1061bdb37.tar.gz
dwm-flexipatch-9072ef28a42051f306f2722004aab4d1061bdb37.zip
Splitting SchemeHid to SchemeHidNorm and SchemeHidSel given that a hidden client may still be the selected client ref. #148
Diffstat (limited to 'patch/bar_flexwintitle.c')
-rw-r--r--patch/bar_flexwintitle.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/patch/bar_flexwintitle.c b/patch/bar_flexwintitle.c
index f7da241..15d6241 100644
--- a/patch/bar_flexwintitle.c
+++ b/patch/bar_flexwintitle.c
@@ -146,7 +146,7 @@ getschemefor(Monitor *m, int group, int activegroup)
#endif // MONOCLE_LAYOUT
return SchemeTitleNorm;
case GRP_HIDDEN:
- return SchemeHid;
+ return SchemeHidNorm;
case GRP_FLOAT:
return (activegroup ? SchemeFlexActFloat : SchemeFlexInaFloat);
}
@@ -172,10 +172,12 @@ flextitledraw(Monitor *m, Client *c, int unused, int x, int w, int tabscheme, Ar
return;
int i, nclienttags = 0, nviewtags = 0, pad = lrpad / 2;
int clientscheme = (
- c == selmon->sel
- ? getselschemefor(tabscheme)
+ c == selmon->sel && HIDDEN(c)
+ ? SchemeHidSel
: HIDDEN(c)
- ? SchemeHid
+ ? SchemeHidNorm
+ : c == selmon->sel
+ ? getselschemefor(tabscheme)
: c->isurgent
? SchemeUrg
: tabscheme