aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Münnich <be.muennich@googlemail.com>2012-03-16 21:03:49 +0100
committerBert Münnich <be.muennich@googlemail.com>2012-03-16 21:03:49 +0100
commit8ab3cee6a5fba0bd5d7ad092c30c65490f2cd524 (patch)
treec0be4328b38bb4d38e698b0b0f87974da582c33e
parentedd016945a5a3d8a742dae65cec5025bd5e508be (diff)
Fixed issue #44
-rw-r--r--window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/window.c b/window.c
index 455e216..b320b47 100644
--- a/window.c
+++ b/window.c
@@ -393,7 +393,8 @@ void win_draw(win_t *win) {
if (win == NULL || win->xwin == None)
return;
- win_draw_bar(win);
+ if (win->barh > 0)
+ win_draw_bar(win);
XSetWindowBackgroundPixmap(win->env.dpy, win->xwin, win->pm);
XClearWindow(win->env.dpy, win->xwin);