aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);