dwm-meillo
changeset 331:0ed2de01e9f7
titlebars contain tags in the right now
author | Anselm R. Garbe <arg@10kloc.org> |
---|---|
date | Tue, 22 Aug 2006 19:55:20 +0200 |
parents | 50a81ba123bf |
children | c5bea7c0231b |
files | draw.c |
diffstat | 1 files changed, 5 insertions(+), 6 deletions(-) [+] |
line diff
1.1 --- a/draw.c Tue Aug 22 18:08:25 2006 +0200 1.2 +++ b/draw.c Tue Aug 22 19:55:20 2006 +0200 1.3 @@ -149,18 +149,17 @@ 1.4 XSetWindowBorder(dpy, c->win, dc.bg); 1.5 XMapWindow(dpy, c->title); 1.6 1.7 - dc.x = dc.y = 0; 1.8 - 1.9 - dc.w = 0; 1.10 + dc.y = dc.w = 0; 1.11 + dc.x = c->tw; 1.12 for(i = 0; i < ntags; i++) { 1.13 if(c->tags[i]) { 1.14 - dc.x += dc.w; 1.15 dc.w = textw(tags[i]); 1.16 + dc.x -= dc.w; 1.17 drawtext(tags[i], !istile); 1.18 } 1.19 } 1.20 - dc.x += dc.w; 1.21 - dc.w = c->tw - dc.x; 1.22 + dc.w = dc.x; 1.23 + dc.x = 0; 1.24 drawtext(c->name, !istile); 1.25 XCopyArea(dpy, dc.drawable, c->title, dc.gc, 0, 0, c->tw, c->th, 0, 0); 1.26 XSync(dpy, False);