From e206f471fe708c5d0f46f201dbd589196cb4e111 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Wed, 28 Nov 2012 22:50:51 +0100 Subject: [PATCH] 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. --- src/winspector.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.11.4.GIT