aboutsummaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'window.c')
-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;
}