From cca2814afe040a729fb5b4d4d4a2512e2f540db8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Sat, 3 Nov 2012 19:54:06 +0100 Subject: [PATCH] wIconSetHighlited: Do not create the icon again The function wIconSetHighlited() is now faster because it doesn't re-create the icon before setting the Highlited status. Now it only draws the icon pixmap. --- src/icon.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/icon.c b/src/icon.c index 9aa18c7f..2980db8e 100644 --- a/src/icon.c +++ b/src/icon.c @@ -554,8 +554,7 @@ void wIconSetHighlited(WIcon *icon, Bool flag) return; icon->highlighted = flag; - icon->force_paint = True; - wIconPaint(icon); + update_icon_pixmap(icon); } #endif -- 2.11.4.GIT