]> git.mdlowis.com Git - proto/labwc.git/commit
menu: remove ShowMenu action from menu items
authortokyo4j <hrak1529@gmail.com>
Fri, 7 Feb 2025 16:32:35 +0000 (01:32 +0900)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Fri, 7 Feb 2025 16:58:55 +0000 (17:58 +0100)
commitfb5e85f40ff92e68782665269529ecc187fcb2f2
tree64b14cd53d7b2b6962808fe6005ba52efe90eb75
parent8f5217c98b2a31c873df9eb3b1237672a0b66116
menu: remove ShowMenu action from menu items

Previous commits fixed some unexpected behaviors when ShowMenu action is
executed from menu items, but that was still prone to bugs because when
calling actions_run(), we allow an inconsistent state where all menus are
closed but pipemenus must not be destroyed.

So this commit simply removes ShowMenu actions from menu items on
initialization.
include/action.h
src/action.c
src/menu/menu.c