Xinqi Bao's Git
projects
/
dwm.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (from parent 1:
c73d5cb
)
if client is focused, the emptysquare don't needs to be drawed
author
arg@mig29 <unknown>
Fri, 1 Dec 2006 16:51:05 +0000
(17:51 +0100)
committer
arg@mig29 <unknown>
Fri, 1 Dec 2006 16:51:05 +0000
(17:51 +0100)
draw.c
patch
|
blob
|
history
diff --git
a/draw.c
b/draw.c
index
5be403b
..
3842685
100644
(file)
--- a/
draw.c
+++ b/
draw.c
@@
-30,7
+30,7
@@
textnw(const char *text, unsigned int len) {
}
static void
}
static void
-drawtext(const char *text, unsigned long col[ColLast], Bool filled
dot, Bool emptydot
) {
+drawtext(const char *text, unsigned long col[ColLast], Bool filled
square, Bool emptysquare
) {
int x, y, w, h;
static char buf[256];
unsigned int len, olen;
int x, y, w, h;
static char buf[256];
unsigned int len, olen;
@@
-75,13
+75,13
@@
drawtext(const char *text, unsigned long col[ColLast], Bool filleddot, Bool empt
XDrawString(dpy, dc.drawable, dc.gc, x, y, buf, len);
}
x = (h + 2) / 4;
XDrawString(dpy, dc.drawable, dc.gc, x, y, buf, len);
}
x = (h + 2) / 4;
- if(filled
dot
) {
+ if(filled
square
) {
r.x = dc.x + 2;
r.y = dc.y + 2;
r.width = r.height = x;
XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1);
}
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;
pt[0].x = dc.x + 2;
pt[0].y = dc.y + 2;
pt[1].x = x;