mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-30 12:15:50 +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;
|
return;
|
||||||
|
|
||||||
icon->highlighted = flag;
|
icon->highlighted = flag;
|
||||||
icon->force_paint = True;
|
update_icon_pixmap(icon);
|
||||||
wIconPaint(icon);
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user