Splitting SchemeHid to SchemeHidNorm and SchemeHidSel given that a hidden client may still be the selected client ref. #148

This commit is contained in:
bakkeby
2021-05-21 10:16:49 +02:00
parent 9a0fb6c83b
commit 9072ef28a4
6 changed files with 36 additions and 23 deletions

View File

@@ -30,10 +30,12 @@ draw_awesomebar(Bar *bar, BarArg *a)
for (i = 0, c = bar->mon->clients; c; c = c->next, i++) {
if (!ISVISIBLE(c))
continue;
if (bar->mon->sel == c)
scm = SchemeTitleSel;
if (bar->mon->sel == c && HIDDEN(c))
scm = SchemeHidSel;
else if (HIDDEN(c))
scm = SchemeHid;
scm = SchemeHidNorm;
else if (bar->mon->sel == c)
scm = SchemeTitleSel;
else
scm = SchemeTitleNorm;