1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-25 07:32:36 +01:00

wIconSetHighlited: Do not create the icon again

The function wIconSetHighlited() is now faster because it doesn't
re-create the icon before setting the Highlited status. Now it only
draws the icon pixmap.
This commit is contained in:
Rodolfo García Peñas (kix)
2012-11-03 19:54:06 +01:00
committed by Carlos R. Mafra
parent c97bf19079
commit cca2814afe

View File

@@ -554,8 +554,7 @@ void wIconSetHighlited(WIcon *icon, Bool flag)
return;
icon->highlighted = flag;
icon->force_paint = True;
wIconPaint(icon);
update_icon_pixmap(icon);
}
#endif