From: Matthias Kruk Date: Fri, 3 Apr 2020 00:18:19 +0000 (+0900) Subject: Show status on all monitors X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=refs%2Fheads%2Funstable;p=dwm Show status on all monitors --- diff --git a/dwm.c b/dwm.c index a250fc1..9c13b83 100755 --- a/dwm.c +++ b/dwm.c @@ -850,6 +850,7 @@ drawbar(Monitor *m) { drawtext(m->ltsymbol, dc.norm, False); dc.x += dc.w; x = dc.x; +#ifndef M10K if(m == selmon) { /* status is only drawn on selected monitor */ dc.w = TEXTW(stext); dc.x = m->ww - dc.w; @@ -864,6 +865,21 @@ drawbar(Monitor *m) { } else dc.x = m->ww; +#else + dc.w = TEXTW(stext); + dc.x = m->ww - dc.w; + + if(showsystray && m == selmon) { + dc.x -= getsystraywidth(); + } + + if(dc.x < x) { + dc.x = x; + dc.w = m->ww - x; + } + + drawtext(stext, dc.norm, False); +#endif /* M10K */ if((dc.w = dc.x - x) > bh) { dc.x = x; if(m->sel) {