mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
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.
This commit is contained in:
committed by
Carlos R. Mafra
parent
99e5a7a9eb
commit
e206f471fe
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user