equal
deleted
inserted
replaced
92 } |
92 } |
93 |
93 |
94 void |
94 void |
95 drawstatus() |
95 drawstatus() |
96 { |
96 { |
97 static const char *mode[] = { "~", "=" }; |
97 static const char *mode[] = { "~", "|" }; |
98 int i, x; |
98 int i, x; |
99 |
99 |
100 dc.x = dc.y = 0; |
100 dc.x = dc.y = 0; |
101 dc.w = bw; |
101 dc.w = bw; |
102 |
102 |
112 if(seltag[i]) |
112 if(seltag[i]) |
113 drawtext(tags[i], dc.sel, sel && sel->tags[i]); |
113 drawtext(tags[i], dc.sel, sel && sel->tags[i]); |
114 else |
114 else |
115 drawtext(tags[i], dc.norm, sel && sel->tags[i]); |
115 drawtext(tags[i], dc.norm, sel && sel->tags[i]); |
116 } |
116 } |
117 x = dc.x + dc.w; |
117 x = dc.x + dc.w + 1; |
118 dc.w = textw(stext); |
118 dc.w = textw(stext); |
119 dc.x = bx + bw - dc.w; |
119 dc.x = bx + bw - dc.w; |
120 if(dc.x < x) { |
120 if(dc.x < x) { |
121 dc.x = x; |
121 dc.x = x; |
122 dc.w = bw - x; |
122 dc.w = bw - x; |