mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 21:08:08 +01:00
Remove wIconUpdate in wDockAttachIcon
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 un-shadowed. Now, the icon pixmap is updated faster.
This commit is contained in:
committed by
Carlos R. Mafra
parent
3d0ed99043
commit
dee9c457cf
@@ -1943,9 +1943,12 @@ Bool wDockAttachIcon(WDock *dock, WAppIcon *icon, int x, int y, Bool update_icon
|
|||||||
MoveInStackListUnder(dock->icon_array[index - 1]->icon->core, icon->icon->core);
|
MoveInStackListUnder(dock->icon_array[index - 1]->icon->core, icon->icon->core);
|
||||||
wAppIconMove(icon, icon->x_pos, icon->y_pos);
|
wAppIconMove(icon, icon->x_pos, icon->y_pos);
|
||||||
|
|
||||||
/* Update the icon images */
|
/*
|
||||||
|
* Update icon pixmap, RImage doesn't change,
|
||||||
|
* so call wIconUpdate is not needed
|
||||||
|
*/
|
||||||
if (lupdate_icon)
|
if (lupdate_icon)
|
||||||
wIconUpdate(icon->icon);
|
update_icon_pixmap(icon->icon);
|
||||||
|
|
||||||
/* Paint it */
|
/* Paint it */
|
||||||
wAppIconPaint(icon);
|
wAppIconPaint(icon);
|
||||||
|
|||||||
Reference in New Issue
Block a user