From a5270253149c278b5baf6ffa77bfddce050b798d Mon Sep 17 00:00:00 2001 From: Bert Münnich Date: Sat, 9 Feb 2013 01:39:18 +0100 Subject: Correctly set window height after i_fit_to_img() --- window.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit v1.2.3-54-g00ecf