changeset 748:61821891835c

statusbar: removed squares, removed modesymbols, normcolor for client title
author meillo@marmaro.de
date Sun, 11 Feb 2007 12:20:54 +0100
parents f0e6c8860014
children 6692d7e7e156
files config.h draw.c
diffstat 2 files changed, 4 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/config.h	Sun Feb 11 12:04:45 2007 +0100
+++ b/config.h	Sun Feb 11 12:20:54 2007 +0100
@@ -7,8 +7,8 @@
 
 #define BORDERPX		1
 #define DEFMODE			dotile		/* dofloat */
-#define FLOATSYMBOL		"F"
-#define TILESYMBOL		"T"
+#define FLOATSYMBOL		""
+#define TILESYMBOL		""
 
 #define FONT			"-*-terminus-medium-*-*-*-12-*-*-*-*-*-*-*"
 #define NORMBGCOLOR		"#333333"
--- a/draw.c	Sun Feb 11 12:04:45 2007 +0100
+++ b/draw.c	Sun Feb 11 12:20:54 2007 +0100
@@ -72,17 +72,6 @@
 		XChangeGC(dpy, dc.gc, GCForeground | GCFont, &gcv);
 		XDrawString(dpy, dc.drawable, dc.gc, x, y, buf, len);
 	}
-	x = (h + 2) / 4;
-	r.x = dc.x + 1;
-	r.y = dc.y + 1;
-	if(filledsquare) {
-		r.width = r.height = x + 1;
-		XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1);
-	}
-	else if(emptysquare) {
-		r.width = r.height = x;
-		XDrawRectangles(dpy, dc.drawable, dc.gc, &r, 1);
-	}
 }
 
 /* extern */
@@ -98,7 +87,7 @@
 			drawtext(tags[i], dc.sel, sel && sel->tags[i], isoccupied(i));
 		else
 			drawtext(tags[i], dc.norm, sel && sel->tags[i], isoccupied(i));
-		dc.x += dc.w;
+		dc.x += dc.w + 1;
 	}
 	dc.w = bmw;
 	drawtext(arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, dc.norm, False, False);
@@ -112,7 +101,7 @@
 	drawtext(stext, dc.norm, False, False);
 	if((dc.w = dc.x - x) > bh) {
 		dc.x = x;
-		drawtext(sel ? sel->name : NULL, sel ? dc.sel : dc.norm, False, False);
+		drawtext(sel ? sel->name : NULL, dc.norm, False, False);
 	}
 	XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, sw, bh, 0, 0);
 	XSync(dpy, False);