only selmon client is highlighted as selected

This commit is contained in:
Jakub 2024-05-11 01:33:19 -04:00
parent dd49417bab
commit ac554b2037

2
dwm.c
View File

@ -897,7 +897,7 @@ drawbar(Monitor *m)
for (c = m->clients; c; c = c->next) { for (c = m->clients; c; c = c->next) {
if (!ISVISIBLE(c)) if (!ISVISIBLE(c))
continue; continue;
if (m->sel == c) if (m->sel == c && m == selmon)
scm = SchemeSel; scm = SchemeSel;
else if (HIDDEN(c)) else if (HIDDEN(c))
scm = SchemeHid; scm = SchemeHid;