add statusallmons

This commit is contained in:
Ray Andrew 2024-10-07 18:14:13 -05:00
parent cfeacbc74a
commit 98c5f7c5b9

6
dwm.c
View file

@ -889,7 +889,7 @@ drawbar(Monitor *m)
stw = getsystraywidth();
/* draw status first so it can be overdrawn by tags later */
if (m == selmon) { /* status is only drawn on selected monitor */
if (m == selmon || 1) { /* status is only drawn on selected monitor */
drw_setscheme(drw, scheme[SchemeNorm]);
tw = TEXTW(stext) - lrpad + 2; /* 2px right padding */
// drw_text(drw, m->ww - tw - 2 * sp, 0, tw, bh, 0, stext, 0);
@ -2619,9 +2619,11 @@ updatesizehints(Client *c)
void
updatestatus(void)
{
Monitor* m;
if (!gettextprop(root, XA_WM_NAME, stext, sizeof(stext)))
strcpy(stext, "dwm-"VERSION);
drawbar(selmon);
for(m = mons; m; m = m->next)
drawbar(m);
updatesystray();
}