summaryrefslogtreecommitdiffstats
path: root/draw.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--draw.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/draw.c b/draw.c
index 8e3962c..19604f3 100644
--- a/draw.c
+++ b/draw.c
@@ -120,7 +120,7 @@ drawstatus(void) {
120 dc.x += dc.w; 120 dc.x += dc.w;
121 } 121 }
122 dc.w = bmw; 122 dc.w = bmw;
123 drawtext(arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, dc.status, False, False); 123 drawtext(arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, dc.norm, False, False);
124 x = dc.x + dc.w; 124 x = dc.x + dc.w;
125 dc.w = textw(stext); 125 dc.w = textw(stext);
126 dc.x = bw - dc.w; 126 dc.x = bw - dc.w;
@@ -128,7 +128,7 @@ drawstatus(void) {
128 dc.x = x; 128 dc.x = x;
129 dc.w = bw - x; 129 dc.w = bw - x;
130 } 130 }
131 drawtext(stext, dc.status, False, False); 131 drawtext(stext, dc.norm, False, False);
132 if((dc.w = dc.x - x) > bh) { 132 if((dc.w = dc.x - x) > bh) {
133 dc.x = x; 133 dc.x = x;
134 drawtext(sel ? sel->name : NULL, sel ? dc.sel : dc.norm, False, False); 134 drawtext(sel ? sel->name : NULL, sel ? dc.sel : dc.norm, False, False);
@@ -141,10 +141,10 @@ void
141drawclient(Client *c) { 141drawclient(Client *c) {
142 if(c == sel && issel) { 142 if(c == sel && issel) {
143 drawstatus(); 143 drawstatus();
144 XSetWindowBorder(dpy, c->win, dc.sel[ColBG]); 144 XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]);
145 return; 145 return;
146 } 146 }
147 XSetWindowBorder(dpy, c->win, dc.norm[ColBG]); 147 XSetWindowBorder(dpy, c->win, dc.norm[ColBorder]);
148 XSync(dpy, False); 148 XSync(dpy, False);
149} 149}
150 150