From: "Rodolfo García Peñas (kix)" <[email protected]>
The function get_rimage_icon_from_icon_win() now returns the default
image if the window image (_wm_net_icon) is not provided by the
application.
Now get_rimage_icon_from_icon_win() always returns an image.
---
src/icon.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/icon.c b/src/icon.c
index 906dbb2..e979a6f 100644
--- a/src/icon.c
+++ b/src/icon.c
@@ -690,6 +690,9 @@ static void get_rimage_icon_from_icon_win(WIcon *icon)
/* Create the new RImage */
image = get_window_image_from_x11(icon->icon_win);
+ if (!image)
+ image = get_rimage_icon_from_default_icon(icon);
+
/* Free the icon info */
unset_icon_image(icon);
--
1.7.10.4
--
To unsubscribe, send mail to [email protected].