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 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 7b5d08d..e749fe9 100644
--- a/src/dock.c
+++ b/src/dock.c
@@ -541,8 +541,11 @@ static void keepIconsCallback(WMenu *menu, WMenuEntry
*entry)
if (aicon->icon->shadowed) {
aicon->icon->shadowed = 0;
- /* Update the icon images */
- wIconUpdate(aicon->icon);
+ /*
+ * Update icon pixmap, RImage doesn't change,
+ * so call wIconUpdate is not needed
+ */
+ update_icon_pixmap(aicon->icon);
/* Paint it */
wAppIconPaint(aicon);
--
1.7.10.4
--
To unsubscribe, send mail to [email protected].