diff options
author | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-05-24 10:43:37 +0000 |
---|---|---|
committer | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-05-24 10:43:37 +0000 |
commit | b607cba0a9cb835143e61625ebbe9e1e5750d197 (patch) | |
tree | e3c19218d7fac7e5f6d71e56535cc3d7559574d9 /draw.c | |
parent | 4ad34ccd36a59c1c5ec2ea9b4263ae6381f3feae (diff) | |
download | dzen-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.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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) |