From: "Rodolfo García Peñas (kix)" <[email protected]>

The function removeAppIconFor() removes the application icon. Is used
when the application is closed. If the application has appicon painted
in the screen, and is docked, removeAppIconFor() needs repaint the icon.

But, the icon was there, was previously set, and is correct, therefore,
we don't need call wIconUpdate() and reassign a new icon, we only need
re-paint the icon.
---
 src/appicon.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/appicon.c b/src/appicon.c
index f254944..5e58f2e 100644
--- a/src/appicon.c
+++ b/src/appicon.c
@@ -250,6 +250,7 @@ void removeAppIconFor(WApplication *wapp)
 
        if (wPreferences.highlight_active_app)
                wIconSetHighlited(wapp->app_icon->icon, False);
+
        if (wapp->app_icon->docked && !wapp->app_icon->attracted) {
                wapp->app_icon->running = 0;
                /* since we keep it, we don't care if it was attracted or not */
@@ -260,10 +261,7 @@ void removeAppIconFor(WApplication *wapp)
                wapp->app_icon->icon->owner = NULL;
                wapp->app_icon->icon->icon_win = None;
 
-               /* Update the icon images */
-               wIconUpdate(wapp->app_icon->icon, NULL);
-
-               /* Paint it */
+               /* The image is ok, only re-paint it */
                wAppIconPaint(wapp->app_icon);
        } else if (wapp->app_icon->docked) {
                wapp->app_icon->running = 0;
-- 
1.7.10.4


-- 
To unsubscribe, send mail to [email protected].

Reply via email to