From: "Rodolfo García Peñas (kix)" <k...@kix.es>

The function create_appicon_from_dock() reads the app_icon form the
docks or the clip appicons. If the icon is found, the icon has the
right image, therefore we don't need update it.

Therefore, the wIconUpdate() function can be removed from the function
create_appicon_from_dock().
---
 src/appicon.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/appicon.c b/src/appicon.c
index 9f416ad..4c5fb86 100644
--- a/src/appicon.c
+++ b/src/appicon.c
@@ -997,10 +997,8 @@ static void create_appicon_from_dock(WWindow *wwin, 
WApplication *wapp, Window m
                if (mainw->wm_hints && (mainw->wm_hints->flags & 
IconWindowHint))
                        wapp->app_icon->icon->icon_win = 
mainw->wm_hints->icon_window;
 
-               /* Update the icon images */
-               wIconUpdate(wapp->app_icon->icon, NULL);
-
-               /* Paint it */
+               /* We don't need update the image, because the
+                * image stored in the dock is perfect. Simply, paint it */
                wAppIconPaint(wapp->app_icon);
                save_appicon(wapp->app_icon, True);
        }
-- 
1.7.10.4


-- 
To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.

Reply via email to