nsxivf7301cf
Correctly updated window pixmap after i_fit_to_img()
+5 −0
1 file changed
- M window.c +5 −0
| @@ -305,6 +305,11 @@ bool win_moveresize(win_t *win, int x, int y, unsigned int w, unsigned int h) | |||
| 305 | 305 | ||
| 306 | 306 | XMoveResizeWindow(win->env.dpy, win->xwin, x, y, w, h); | |
| 307 | 307 | ||
| 308 | + | if (win->pm != None) { | |
| 309 | + | XFreePixmap(win->env.dpy, win->pm); | |
| 310 | + | win->pm = None; | |
| 311 | + | } | |
| 312 | + | ||
| 308 | 313 | return true; | |
| 309 | 314 | } | |
| 310 | 315 | ||