menu: support inline submenus

...for example:

<menu id="root-menu" label="">
  <menu id="submenu" label="submenu">
    <item label="foo"></item>
  </menu>
  <item label="bar"></item>
</menu>
This commit is contained in:
Johan Malm 2021-11-08 17:20:37 +00:00
parent b878db57a7
commit cd31283ba3
2 changed files with 19 additions and 2 deletions

View file

@ -25,6 +25,7 @@ struct menu {
char *id;
char *label;
bool visible;
struct menu *parent;
struct wlr_box box;
struct wl_list menuitems;
struct server *server;