diff --git a/src/icon.c b/src/icon.c index e745619f..f1f9c67d 100644 --- a/src/icon.c +++ b/src/icon.c @@ -398,9 +398,8 @@ Bool wIconChangeImageFile(WIcon *icon, char *file) unset_icon_image(icon); /* Set the new image */ - icon->file_image = image; icon->file = wstrdup(path); - wIconUpdate(icon, NULL); + wIconUpdate(icon, image); } else { error = 1; }