Mercurial > aewl
comparison draw.c @ 355:f9543a4af9e5
small fix to separate client title from right-most tag
author | Anselm R. Garbe <arg@10kloc.org> |
---|---|
date | Fri, 25 Aug 2006 14:46:01 +0200 |
parents | 8a06efe5b563 |
children | c2a65784cb71 |
comparison
equal
deleted
inserted
replaced
354:bb780add36c6 | 355:f9543a4af9e5 |
---|---|
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; |