Allow overwriting the icon of item linking to another menu like below
(the icon for "krita" should be shown):
<openbox_menu>
<menu id="static-menu" label="Static Menu" icon="mpv" />
<menu id="root-menu" label="Root">
<menu id="static-menu" icon="krita" />
</menu>
</openbox_menu>
This commit also fixes my mistake in
17d66e5 (s/parent->icon/menu->icon/)
that showed incorrect icon in an item linking to another menu.
}
struct menuitem *item = item_create(parent, menu->label,
- parent->icon_name, true);
+ icon_name ? icon_name : menu->icon_name, true);
item->submenu = menu;
}
error: