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:
committed by
Carlos R. Mafra
parent
c97bf19079
commit
cca2814afe
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user