Correctly set window height after i_fit_to_img()
This commit is contained in:
parent
f7301cf4f9
commit
a527025314
1 changed files with 3 additions and 0 deletions
3
window.c
3
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue