From: "Rodolfo García Peñas (kix)" <[email protected]>

When we click on save settings, we call wIconUpdate() / wIconChangeImageFile()
(wIconChangeImageFile() calls wIconUpdate() at the end). Then wIconUpdate()
try to select the correct icon.

We must set the flag always_user_icon in the main_window, because wIconUpdate()
try to find the flag for the application (appicon) there. Else, in the line:

if (wwin && WFLAGP(wwin, always_user_icon)) {

of wIconUpdate, the flag is "0", then jump to the option "get_window_image_def"
---
 src/winspector.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/winspector.c b/src/winspector.c
index 8071a46..f0513a4 100644
--- a/src/winspector.c
+++ b/src/winspector.c
@@ -677,7 +677,10 @@ static void applySettings(WMButton *button, InspectorPanel 
*panel)
 #ifdef XKB_BUTTON_HINT
        WSETUFLAG(wwin, no_language_button, 
WMGetButtonSelected(panel->moreChk[11]));
 #endif
+       /* Set the window flag always_user_icon, used by the window's icon */
        WSETUFLAG(wwin, always_user_icon, WMGetButtonSelected(panel->alwChk));
+       /* Set the main window flag always_user_icon, used by the application 
appicon */
+       WSETUFLAG(wapp->main_window_desc, always_user_icon, 
WMGetButtonSelected(panel->alwChk));
 
        if (WFLAGP(wwin, no_titlebar) && wwin->flags.shaded)
                wUnshadeWindow(wwin);
-- 
1.7.10.4


-- 
To unsubscribe, send mail to [email protected].

Reply via email to