mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 21:08: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:
committed by
Carlos R. Mafra
parent
544bc8e7a7
commit
256c8a498e
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user