]> git.mdlowis.com Git - proto/labwc.git/commit
menu: fix crash triggered by pipemenu without parent <menu>
authorJohan Malm <jgm323@gmail.com>
Mon, 15 Jul 2024 20:47:10 +0000 (21:47 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Mon, 15 Jul 2024 21:00:11 +0000 (22:00 +0100)
commit7dd7b5cc59561c306f7c7e7489a34d9fdf8b9e40
treed6b0e263be6ccab81c181727f5d1d31a45fe4c1a
parent714511736ba2357d238e7d7de321ccc8d948fa97
menu: fix crash triggered by pipemenu without parent <menu>

...such as the one in the example below:

    <?xml version="1.0" encoding="UTF-8"?>
    <openbox_menu>
      <menu id="root-menu" label="obmenu-generator" execute="obmenu-generator"/>
    </openbox_menu>

We should consider supporting this construct in future.

Reported-by: cry0xen via IRC
src/menu/menu.c