From 3d0ed99043615dd9fd0550107075cba895e56f97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Mon, 8 Apr 2013 19:40:54 +0200 Subject: [PATCH] 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. --- src/dock.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/dock.c b/src/dock.c index 68c7968b..b99e16b0 100644 --- a/src/dock.c +++ b/src/dock.c @@ -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);