1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 12:28:22 +01:00

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.
This commit is contained in:
Rodolfo García Peñas (kix)
2012-07-15 21:31:14 +02:00
committed by Carlos R. Mafra
parent af41673dbf
commit 448a68c6d2

View File

@@ -449,6 +449,10 @@ static RImage *get_wwindow_image_from_x11(WWindow *wwin)
image = makeRImageFromARGBData(data); image = makeRImageFromARGBData(data);
XFree(property); XFree(property);
/* Resize the image to the correct value */
image = wIconValidateIconSize(image, wPreferences.icon_size);
return image; return image;
} }