The status bar contains the clock and other information that should
be displayed on all screens. This commit makes sure it is drawn on
all screens, not just the selected one.
drawtext(m->ltsymbol, dc.norm, False);
dc.x += dc.w;
x = dc.x;
- if(m == selmon) { /* status is only drawn on selected monitor */
- 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);
+
+ dc.w = TEXTW(stext);
+ dc.x = m->ww - dc.w;
+ if(showsystray && m == selmon) {
+ dc.x -= getsystraywidth();
}
- else
- dc.x = m->ww;
+ if(dc.x < x) {
+ dc.x = x;
+ dc.w = m->ww - x;
+ }
+ drawtext(stext, dc.norm, False);
+
if((dc.w = dc.x - x) > bh) {
dc.x = x;
if(m->sel) {