menu: do not require label attribute for highest level menu definition

Allow highest level menu definitions - typically used for root-menu and
client-menu - to be defined like this:

    <openbox_menu>
      <menu id="">
      </menu>
    </openbox>

Previously this required a label attribute (which was not used for
anything and could be an empty string) as show below:

    <openbox_menu>
      <menu id="" label="">
      </menu>
    </openbox>

Closes issue #472
This commit is contained in:
Johan Malm 2022-08-11 18:43:51 +01:00 committed by Johan Malm
parent ac5c9dae00
commit 70421b1207
3 changed files with 39 additions and 5 deletions

View file

@ -15,7 +15,7 @@ A menu file must be entirely enclosed within <openbox_menu> and
</openbox_menu> tags. Inside these tags, menus are specified as follows:
```
<menu id="" label="">
<menu id="">
<!-- A menu entry with an action, for example to execute an application -->
<item label="">