Krolyxon
Commit a527025

Branches

Refs →

nsxiva527025

Correctly set window height after i_fit_to_img()

Author
Bert Münnich
Date
2013-02-09 01:39 +0100
Parent
f7301cf
Commit
a5270253149c278b5baf6ffa77bfddce050b798d

+3 −0

1 file changed

  1. M window.c +3 −0
M window.c View
@@ -287,6 +287,9 @@ bool win_moveresize(win_t *win, int x, int y, unsigned int w, unsigned int h)
287287 if (win == NULL || win->xwin == None)
288288 return false;
289289
290+ /* caller knows nothing about the bar */
291+ h += win->bar.h;
292+
290293 x = MAX(0, x);
291294 y = MAX(0, y);
292295 w = MIN(w, win->env.scrw - 2 * win->bw);