aboutsummaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
authorBert Münnich <be.muennich@gmail.com>2013-02-09 01:39:18 +0100
committerBert Münnich <be.muennich@gmail.com>2013-02-09 01:39:18 +0100
commita5270253149c278b5baf6ffa77bfddce050b798d (patch)
tree23d51dcd64eb14552e9cd4b1a69ab29de8bec244 /window.c
parentf7301cf4f9f93a00faecbf8701e690ba99ddac35 (diff)
Correctly set window height after i_fit_to_img()
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 f1a3eb8..e4ae641 100644
--- a/window.c
+++ b/window.c
@@ -287,6 +287,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);