aboutsummaryrefslogtreecommitdiffstats
path: root/draw.c
diff options
context:
space:
mode:
authorgotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-07-17 10:24:43 +0000
committergotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-07-17 10:24:43 +0000
commit05940996a84d737ccd27666ec117d36073be21de (patch)
tree9a56c9df15226c27cc0bc472600d92c36c8398ad /draw.c
parent4bf91632557e438fb7cd5e93e1511a749aafcebd (diff)
downloaddzen-05940996a84d737ccd27666ec117d36073be21de.tar.gz
dzen-05940996a84d737ccd27666ec117d36073be21de.zip
fixed expose handling
git-svn-id: http://dzen.googlecode.com/svn/trunk@126 f2baff5b-bf2c-0410-a398-912abdc3d8b2
Diffstat (limited to 'draw.c')
-rw-r--r--draw.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/draw.c b/draw.c
index 48820b5..547fab7 100644
--- a/draw.c
+++ b/draw.c
@@ -317,12 +317,12 @@ drawheader(const char * text) {
dzen.h = dzen.line_height;
XRectangle r = { dzen.x, dzen.y, dzen.w, dzen.h};
- XSetForeground(dzen.dpy, dzen.gc, dzen.norm[ColBG]);
- XFillRectangles(dzen.dpy, dzen.title_win.drawable, dzen.gc, &r, 1);
- XSetForeground(dzen.dpy, dzen.gc, dzen.norm[ColFG]);
-
- if(text)
+ if(text) {
+ XSetForeground(dzen.dpy, dzen.gc, dzen.norm[ColBG]);
+ XFillRectangles(dzen.dpy, dzen.title_win.drawable, dzen.gc, &r, 1);
+ XSetForeground(dzen.dpy, dzen.gc, dzen.norm[ColFG]);
parse_line(text, -1, dzen.title_win.alignment, 0);
+ }
XCopyArea(dzen.dpy, dzen.title_win.drawable, dzen.title_win.win,
dzen.gc, 0, 0, dzen.title_win.width, dzen.line_height, 0, 0);