mirror of
https://github.com/tiyn/dwm.git
synced 2025-04-19 15:57:45 +02:00
added statusallmons to master
This commit is contained in:
commit
60f78e1cac
10
dwm.c
10
dwm.c
@ -800,7 +800,7 @@ drawbar(Monitor *m)
|
|||||||
Client *c;
|
Client *c;
|
||||||
|
|
||||||
/* draw status first so it can be overdrawn by tags later */
|
/* 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]);
|
drw_setscheme(drw, scheme[SchemeNorm]);
|
||||||
sw = TEXTW(stext) - lrpad + 2; /* 2px right padding */
|
sw = TEXTW(stext) - lrpad + 2; /* 2px right padding */
|
||||||
drw_text(drw, m->ww - sw, 0, sw, bh, 0, stext, 0);
|
drw_text(drw, m->ww - sw, 0, sw, bh, 0, stext, 0);
|
||||||
@ -2154,11 +2154,11 @@ updatesizehints(Client *c)
|
|||||||
void
|
void
|
||||||
updatestatus(void)
|
updatestatus(void)
|
||||||
{
|
{
|
||||||
if (!gettextprop(root, XA_WM_NAME, rawstext, sizeof(rawstext)))
|
Monitor* m;
|
||||||
|
if (!gettextprop(root, XA_WM_NAME, stext, sizeof(stext)))
|
||||||
strcpy(stext, "dwm-"VERSION);
|
strcpy(stext, "dwm-"VERSION);
|
||||||
else
|
for(m = mons; m; m = m->next)
|
||||||
copyvalidchars(stext, rawstext);
|
drawbar(m);
|
||||||
drawbar(selmon);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user