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.
This commit is contained in:
Rodolfo García Peñas (kix) authored and Carlos R. Mafra committed 2013-04-08 22:06:26 +01:00
1 parent 544bc8e7a7
commit 256c8a498e
1 file changed
+5 -2
+5 -2
View File
@@ -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);