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

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)
2013-04-08 19:40:52 +02:00
committed by Carlos R. Mafra
parent 544bc8e7a7
commit 256c8a498e

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);