Browse files

Correctly updated window pixmap after i_fit_to_img()

  • Loading branch information...
1 parent e810072 commit f7301cf4f9f93a00faecbf8701e690ba99ddac35 @muennich committed Feb 8, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 window.c
View
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);
+ if (win->pm != None) {
+ XFreePixmap(win->env.dpy, win->pm);
+ win->pm = None;
+ }
+
return true;
}

0 comments on commit f7301cf

Please sign in to comment.