aboutsummaryrefslogtreecommitdiffstats
path: root/draw.c
diff options
context:
space:
mode:
authorgotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-05-24 10:43:37 +0000
committergotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-05-24 10:43:37 +0000
commitb607cba0a9cb835143e61625ebbe9e1e5750d197 (patch)
treee3c19218d7fac7e5f6d71e56535cc3d7559574d9 /draw.c
parent4ad34ccd36a59c1c5ec2ea9b4263ae6381f3feae (diff)
downloaddzen-b607cba0a9cb835143e61625ebbe9e1e5750d197.tar.gz
dzen-b607cba0a9cb835143e61625ebbe9e1e5750d197.zip
added optional Xinerama support, thanks David Glasser
git-svn-id: http://dzen.googlecode.com/svn/trunk@29 f2baff5b-bf2c-0410-a398-912abdc3d8b2
Diffstat (limited to 'draw.c')
-rw-r--r--draw.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/draw.c b/draw.c
index e7d59a8..1393d1e 100644
--- a/draw.c
+++ b/draw.c
@@ -18,7 +18,9 @@ textnw(const char *text, unsigned int len) {
return XTextWidth(dzen.font.xfont, text, len);
}
-void drawtext(const char *text, int reverse, int line, int align) {
+
+void
+drawtext(const char *text, int reverse, int line, int align) {
int x, y, w, h;
static char buf[1024];
unsigned int len, olen;
@@ -28,9 +30,9 @@ void drawtext(const char *text, int reverse, int line, int align) {
mgc = reverse ? dzen.gc : dzen.rgc;
- if(line == -1)
+ if(line == -1) /* title window */
XFillRectangles(dzen.dpy, dzen.title_win.drawable, mgc, &r, 1);
- else
+ else /* slave window */
XFillRectangles(dzen.dpy, dzen.slave_win.drawable, mgc, &r, 1);
if(!text)