From b607cba0a9cb835143e61625ebbe9e1e5750d197 Mon Sep 17 00:00:00 2001 From: gotmor Date: Thu, 24 May 2007 10:43:37 +0000 Subject: added optional Xinerama support, thanks David Glasser git-svn-id: http://dzen.googlecode.com/svn/trunk@29 f2baff5b-bf2c-0410-a398-912abdc3d8b2 --- draw.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'draw.c') 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) -- cgit v1.2.3-54-g00ecf