ttitlebars contain tags in the right now - dwm - [fork] customized build of dwm, the dynamic window manager
(HTM) git clone git://src.adamsgaard.dk/dwm
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit dc83b9e988d12bd59ac7a5ab425308fc46ae5ed2
(DIR) parent 8b4bc8270a975a14c1fb7db0a94d83f4ba4d2734
(HTM) Author: Anselm R. Garbe <arg@10kloc.org>
Date: Tue, 22 Aug 2006 19:55:20 +0200
ttitlebars contain tags in the right now
Diffstat:
M draw.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
---
(DIR) diff --git a/draw.c b/draw.c
t@@ -149,18 +149,17 @@ drawtitle(Client *c)
XSetWindowBorder(dpy, c->win, dc.bg);
XMapWindow(dpy, c->title);
- dc.x = dc.y = 0;
-
- dc.w = 0;
+ dc.y = dc.w = 0;
+ dc.x = c->tw;
for(i = 0; i < ntags; i++) {
if(c->tags[i]) {
- dc.x += dc.w;
dc.w = textw(tags[i]);
+ dc.x -= dc.w;
drawtext(tags[i], !istile);
}
}
- dc.x += dc.w;
- dc.w = c->tw - dc.x;
+ dc.w = dc.x;
+ dc.x = 0;
drawtext(c->name, !istile);
XCopyArea(dpy, dc.drawable, c->title, dc.gc, 0, 0, c->tw, c->th, 0, 0);
XSync(dpy, False);