add statusallmons
This commit is contained in:
parent
cfeacbc74a
commit
98c5f7c5b9
1 changed files with 4 additions and 2 deletions
6
dwm.c
6
dwm.c
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue