From 256c8a498e06c1a44acb0ba0bbf1a4aab9177ba4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Mon, 8 Apr 2013 19:40:52 +0200 Subject: [PATCH] Remove wIconUpdate in keepIconsCallback The call to wIconUpdate() can be changed by call to update_icon_pixmap(), because the icon doesn't need to be changed. This update is only for change the icon pixmap to shadowed. Now, the icon pixmap is updated faster. --- src/dock.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/dock.c b/src/dock.c index 7b5d08d8..e749fe98 100644 --- a/src/dock.c +++ b/src/dock.c @@ -541,8 +541,11 @@ static void keepIconsCallback(WMenu *menu, WMenuEntry *entry) if (aicon->icon->shadowed) { aicon->icon->shadowed = 0; - /* Update the icon images */ - wIconUpdate(aicon->icon); + /* + * Update icon pixmap, RImage doesn't change, + * so call wIconUpdate is not needed + */ + update_icon_pixmap(aicon->icon); /* Paint it */ wAppIconPaint(aicon); -- 2.11.4.GIT