1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-22 14:08:06 +01:00

Move out wIconUpdate from set_icon_image_from_database

The function set_icon_image_from_database() set the icon from the
database, but wIconUpdate() update the icon using different methods
, like for example get the image from X11. So, is better move the
wIconUpdate() to the function who call set_icon_image_from_database(),
to avoid understanding problems.
This commit is contained in:
Rodolfo García Peñas (kix)
2013-04-08 19:40:51 +02:00
committed by Carlos R. Mafra
parent 883ed8ac9a
commit 544bc8e7a7
2 changed files with 7 additions and 2 deletions

View File

@@ -266,6 +266,9 @@ void removeAppIconFor(WApplication *wapp)
set_icon_image_from_database(wapp->app_icon->icon, wapp->app_icon->wm_instance,
wapp->app_icon->wm_class, wapp->app_icon->command);
/* Update the icon, because wapp->app_icon->icon could be NULL */
wIconUpdate(wapp->app_icon->icon);
/* Paint it */
wAppIconPaint(wapp->app_icon);
} else if (wapp->app_icon->docked) {