>From f940665abd299a92e57730bf518fafec49c3b55c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?"Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20(kix)"?= <[email protected]>
Date: Sun, 15 Jul 2012 21:31:14 +0200
Subject: [PATCH 3/3] 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 494f55b..b416fdb 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;
 }
 
-- 
1.7.10.4

-- 
||// //\\// Rodolfo "kix" Garcia
||\\// //\\ http://www.kix.es/
>From f940665abd299a92e57730bf518fafec49c3b55c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?"Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20(kix)"?= <[email protected]>
Date: Sun, 15 Jul 2012 21:31:14 +0200
Subject: [PATCH 3/3] 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 494f55b..b416fdb 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;
 }
 
-- 
1.7.10.4

Reply via email to