From: Rodolfo García Peñas (kix) Date: Sun, 15 Jul 2012 19:31:14 +0000 (+0200) Subject: get_wwindow_image_from_x11 icon resize X-Git-Tag: wmaker-0.95.4~132 X-Git-Url: https://repo.or.cz/w/wmaker-crm.git/commitdiff_plain/448a68c6d2812f74a83eed8da7ed7c5abb0ade1c 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. --- 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; }