Introduction
Introduction Statistics Contact Development Disclaimer Help
tif client is focused, the emptysquare don't needs to be drawed - dwm - [fork] …
git clone git://src.adamsgaard.dk/dwm
Log
Files
Refs
README
LICENSE
---
commit 4881857458f7558f5609d44956e966809eb9f93e
parent c73d5cb7b67d60abc92ff83aff57fc610dcd08e1
Author: arg@mig29 <unknown>
Date: Fri, 1 Dec 2006 17:51:05 +0100
if client is focused, the emptysquare don't needs to be drawed
Diffstat:
M draw.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/draw.c b/draw.c
t@@ -30,7 +30,7 @@ textnw(const char *text, unsigned int len) {
}
static void
-drawtext(const char *text, unsigned long col[ColLast], Bool filleddot, Bool em…
+drawtext(const char *text, unsigned long col[ColLast], Bool filledsquare, Bool…
int x, y, w, h;
static char buf[256];
unsigned int len, olen;
t@@ -75,13 +75,13 @@ drawtext(const char *text, unsigned long col[ColLast], Boo…
XDrawString(dpy, dc.drawable, dc.gc, x, y, buf, len);
}
x = (h + 2) / 4;
- if(filleddot) {
+ if(filledsquare) {
r.x = dc.x + 2;
r.y = dc.y + 2;
r.width = r.height = x;
XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1);
}
- if(emptydot) {
+ else if(emptysquare) {
pt[0].x = dc.x + 2;
pt[0].y = dc.y + 2;
pt[1].x = x;
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.