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

Remove wIconUpdate in moveIconBetweenDocks

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 shadowed.

Now, the icon pixmap is updated faster.
This commit is contained in:
Rodolfo García Peñas (kix)
2013-04-08 19:40:53 +02:00
committed by Carlos R. Mafra
parent 256c8a498e
commit 88d16d03b9

View File

@@ -2097,9 +2097,12 @@ static Bool moveIconBetweenDocks(WDock *src, WDock *dest, WAppIcon *icon, int x,
MoveInStackListUnder(dest->icon_array[index - 1]->icon->core, icon->icon->core);
/* 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);