From: "Rodolfo García Peñas (kix)" <k...@kix.es>

The winspector applySettings function uses now the function
get_window_image_from_x11() to get the icon image. This is because
the icon stored in the appicon is not the icon supplied by the
application, is the icon selected for the application using the
function wIconUpdate.
---
 src/winspector.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/winspector.c b/src/winspector.c
index d3f49d0..3e6fe1f 100644
--- a/src/winspector.c
+++ b/src/winspector.c
@@ -793,13 +793,13 @@ static void applySettings(WMButton *button, 
InspectorPanel *panel)
                        if (wapp->app_icon)
                                wIconChangeImageFile(wapp->app_icon->icon, 
file);
                } else {
-                       /* Change App Icon image */
-                       if (wapp->app_icon)
-                               wIconUpdate(wapp->app_icon->icon, 
get_rimage_icon_from_wm_hints(wapp->app_icon->icon));
-
                        /* Change icon image if the app is minimized */
                        if (wwin->icon)
-                               wIconUpdate(wwin->icon, 
get_rimage_icon_from_wm_hints(wwin->icon));
+                               wIconUpdate(wwin->icon, 
get_window_image_from_x11(wwin->client_win));
+
+                       /* Change App Icon image */
+                       if (wapp->app_icon)
+                               wIconUpdate(wapp->app_icon->icon, 
get_window_image_from_x11(wwin->client_win));
                }
 
                if (file)
-- 
1.7.10.4


-- 
To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.

Reply via email to