Correctly updated window pixmap after i_fit_to_img()
This commit is contained in:
parent
e810072d71
commit
f7301cf4f9
5
window.c
5
window.c
|
@ -305,6 +305,11 @@ bool win_moveresize(win_t *win, int x, int y, unsigned int w, unsigned int h)
|
||||||
|
|
||||||
XMoveResizeWindow(win->env.dpy, win->xwin, x, y, w, h);
|
XMoveResizeWindow(win->env.dpy, win->xwin, x, y, w, h);
|
||||||
|
|
||||||
|
if (win->pm != None) {
|
||||||
|
XFreePixmap(win->env.dpy, win->pm);
|
||||||
|
win->pm = None;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue