From: Rodolfo García Peñas (kix) Date: Wed, 28 Nov 2012 21:50:51 +0000 (+0100) Subject: winspector: Don't use text input if NULL X-Git-Tag: wmaker-0.95.4~10 X-Git-Url: https://repo.or.cz/w/wmaker-crm.git/commitdiff_plain/e206f471fe708c5d0f46f201dbd589196cb4e111 winspector: Don't use text input if NULL This patch don't use the text input for the file if is empty. The function should use the function to get the icon provided by the client. --- diff --git a/src/winspector.c b/src/winspector.c index 7e916e78..cd9250da 100644 --- a/src/winspector.c +++ b/src/winspector.c @@ -736,7 +736,9 @@ static void applySettings(WMButton *button, InspectorPanel *panel) file = NULL; } - if (WFLAGP(wwin, always_user_icon)) { + /* If file is NULL, the always_user_icon doesn't matter, + * because we need to read the icon from the window */ + if (file && WFLAGP(wwin, always_user_icon)) { /* Change icon image if the app is minimized */ if (wwin->icon) wIconChangeImageFile(wwin->icon, file);