Fix: Handle missing (NULL pointer) output for separator.
This commit is contained in:
4
xmenu.c
4
xmenu.c
@@ -721,8 +721,10 @@ setupmenu(struct Menu *menu, XClassHint *classh)
|
|||||||
/* set window title (used if wflag is on) */
|
/* set window title (used if wflag is on) */
|
||||||
if (menu->parent == NULL) {
|
if (menu->parent == NULL) {
|
||||||
title = classh->res_name;
|
title = classh->res_name;
|
||||||
} else {
|
} else if (menu->caller->output) {
|
||||||
title = menu->caller->output;
|
title = menu->caller->output;
|
||||||
|
} else {
|
||||||
|
title = "\0";
|
||||||
}
|
}
|
||||||
XStringListToTextProperty(&title, 1, &wintitle);
|
XStringListToTextProperty(&title, 1, &wintitle);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user