diff options
author | Bert Münnich <be.muennich@gmail.com> | 2013-02-08 23:26:06 +0100 |
---|---|---|
committer | Bert Münnich <be.muennich@gmail.com> | 2013-02-08 23:26:06 +0100 |
commit | f7301cf4f9f93a00faecbf8701e690ba99ddac35 (patch) | |
tree | dafd4ee5be5fc9bd2f0076f7df474a5a853fb92e | |
parent | e810072d71355ef68315f1c087168f290585c716 (diff) |
Correctly updated window pixmap after i_fit_to_img()
-rw-r--r-- | window.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; } |