summaryrefslogtreecommitdiff
path: root/draw.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-08-25 15:12:32 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-08-25 15:12:32 +0200
commitaa471f2d65688f8cf4944c073ff05224bfac8a9c (patch)
tree9f8a15537aae4b5899d58b5c626487bcdf980cd6 /draw.c
parentd37dfa1bedbfadb5d39aa1937e77d4fd44319018 (diff)
removed a bunch of lines, made mode symbols configurable
Diffstat (limited to 'draw.c')
-rw-r--r--draw.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/draw.c b/draw.c
index fb4ba2eb..d32e8887 100644
--- a/draw.c
+++ b/draw.c
@@ -94,18 +94,13 @@ drawall()
void
drawstatus()
{
- static const char *mode[] = { "><", "|=" };
int i, x;
dc.x = dc.y = 0;
dc.w = bw;
- if(!modew)
- modew = textw(mode[0]) > textw(mode[1]) ? textw(mode[0]) : textw(mode[1]);
- drawtext(mode[arrange == dotile ? 1 : 0], dc.status, False);
-
- dc.w = 0;
- dc.x = modew;
+ drawtext(arrange == dotile ? TILEDSYMBOL : FLOATSYMBOL, dc.status, False);
+ dc.w = modew;
for(i = 0; i < ntags; i++) {
dc.x += dc.w;
dc.w = textw(tags[i]);