Krolyxon
Commit f7301cf

Branches

Refs →

nsxivf7301cf

Correctly updated window pixmap after i_fit_to_img()

Author
Bert Münnich
Date
2013-02-08 23:26 +0100
Parent
e810072
Commit
f7301cf4f9f93a00faecbf8701e690ba99ddac35

+5 −0

1 file changed

  1. M window.c +5 −0
M window.c View
@@ -305,6 +305,11 @@ bool win_moveresize(win_t *win, int x, int y, unsigned int w, unsigned int h)
305305
306306 XMoveResizeWindow(win->env.dpy, win->xwin, x, y, w, h);
307307
308+ if (win->pm != None) {
309+ XFreePixmap(win->env.dpy, win->pm);
310+ win->pm = None;
311+ }
312+
308313 return true;
309314 }
310315