1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 12:58:08 +01:00

Remove wIconUpdate in wDockDetach

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:
Rodolfo García Peñas (kix)
2013-04-08 19:40:54 +02:00
committed by Carlos R. Mafra
parent 88d16d03b9
commit 3d0ed99043

View File

@@ -2177,9 +2177,12 @@ void wDockDetach(WDock *dock, WAppIcon *icon)
ChangeStackingLevel(icon->icon->core, NORMAL_ICON_LEVEL);
/* Update the icon images */
/*
* Update icon pixmap, RImage doesn't change,
* so call wIconUpdate is not needed
*/
if (update_icon)
wIconUpdate(icon->icon);
update_icon_pixmap(icon->icon);
/* Paint it */
wAppIconPaint(icon);