aboutsummaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'window.c')
-rw-r--r--window.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/window.c b/window.c
index 00b052c..0b1ce65 100644
--- a/window.c
+++ b/window.c
@@ -309,6 +309,9 @@ bool win_moveresize(win_t *win, int x, int y, unsigned int w, unsigned int h)
if (win == NULL || win->xwin == None)
return false;
+ /* caller knows nothing about the bar */
+ h += win->bar.h;
+
x = MAX(0, x);
y = MAX(0, y);
w = MIN(w, win->env.scrw - 2 * win->bw);