From: "Rodolfo García Peñas (kix)" <[email protected]>

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.
---
 src/dock.c |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/dock.c b/src/dock.c
index b99e16b..60f87b5 100644
--- a/src/dock.c
+++ b/src/dock.c
@@ -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);
        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)
-               wIconUpdate(icon->icon);
+               update_icon_pixmap(icon->icon);
 
        /* Paint it */
        wAppIconPaint(icon);
-- 
1.7.10.4


-- 
To unsubscribe, send mail to [email protected].

Reply via email to