From 448a68c6d2812f74a83eed8da7ed7c5abb0ade1c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Sun, 15 Jul 2012 21:31:14 +0200 Subject: [PATCH] get_wwindow_image_from_x11 icon resize The icon size should be set when the icon is created. Therefore the icon size for net_icon_image should be set at get_wwindow_image_from_x11(), function that creates the image. --- src/wmspec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wmspec.c b/src/wmspec.c index 494f55b3..b416fdb2 100644 --- a/src/wmspec.c +++ b/src/wmspec.c @@ -449,6 +449,10 @@ static RImage *get_wwindow_image_from_x11(WWindow *wwin) image = makeRImageFromARGBData(data); XFree(property); + + /* Resize the image to the correct value */ + image = wIconValidateIconSize(image, wPreferences.icon_size); + return image; } -- 2.11.4.GIT