menu: print menu.xml nodenames

...when LABWC_DEBUG_MENU_NODENAMES is set
This commit is contained in:
Johan Malm 2023-07-02 13:55:23 +01:00 committed by Johan Malm
parent c0c40e1432
commit 4a31972b6f

View file

@ -307,6 +307,9 @@ entry(xmlNode *node, char *nodename, char *content)
return;
}
string_truncate_at_pattern(nodename, ".openbox_menu");
if (getenv("LABWC_DEBUG_MENU_NODENAMES")) {
printf("%s: %s\n", nodename, content);
}
if (in_item) {
fill_item(nodename, content);
}