nsxiva527025
Correctly set window height after i_fit_to_img()
+3 −0
1 file changed
- M window.c +3 −0
| @@ -287,6 +287,9 @@ bool win_moveresize(win_t *win, int x, int y, unsigned int w, unsigned int h) | |||
| 287 | 287 | if (win == NULL || win->xwin == None) | |
| 288 | 288 | return false; | |
| 289 | 289 | ||
| 290 | + | /* caller knows nothing about the bar */ | |
| 291 | + | h += win->bar.h; | |
| 292 | + | ||
| 290 | 293 | x = MAX(0, x); | |
| 291 | 294 | y = MAX(0, y); | |
| 292 | 295 | w = MIN(w, win->env.scrw - 2 * win->bw); | |