diff --git a/src/icon.c b/src/icon.c index 38814bff..9aa18c7f 100644 --- a/src/icon.c +++ b/src/icon.c @@ -614,6 +614,11 @@ void wIconUpdate(WIcon *icon) get_rimage_icon_from_user_icon(icon); } + update_icon_pixmap(icon); +} + +void update_icon_pixmap(WIcon *icon) +{ if (icon->pixmap != None) XFreePixmap(dpy, icon->pixmap); diff --git a/src/icon.h b/src/icon.h index f0786cbf..48cf58b7 100644 --- a/src/icon.h +++ b/src/icon.h @@ -62,6 +62,7 @@ void wIconPaint(WIcon *icon); void wIconUpdate(WIcon *icon); void wIconSelect(WIcon *icon); void wIconChangeTitle(WIcon *icon, char *new_title); +void update_icon_pixmap(WIcon *icon); Bool wIconChangeImageFile(WIcon *icon, char *file);