aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Münnich <be.muennich@gmail.com>2013-02-08 23:26:06 +0100
committerBert Münnich <be.muennich@gmail.com>2013-02-08 23:26:06 +0100
commitf7301cf4f9f93a00faecbf8701e690ba99ddac35 (patch)
treedafd4ee5be5fc9bd2f0076f7df474a5a853fb92e
parente810072d71355ef68315f1c087168f290585c716 (diff)
Correctly updated window pixmap after i_fit_to_img()
-rw-r--r--window.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/window.c b/window.c
index a10fdbb..f1a3eb8 100644
--- a/window.c
+++ b/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);
+ if (win->pm != None) {
+ XFreePixmap(win->env.dpy, win->pm);
+ win->pm = None;
+ }
+
return true;
}