]> git.mdlowis.com Git - proto/labwc.git/commit
menu: lazily generate menu scenes
authortokyo4j <hrak1529@gmail.com>
Sun, 9 Mar 2025 15:00:39 +0000 (00:00 +0900)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Mon, 10 Mar 2025 07:16:20 +0000 (16:16 +0900)
commit12f95543f0796eae12cc2be56f76b69b89fe5dea
treeeef0476fe36af1c7c4c49d2a474dbc8ba9115d1a
parent514f1d4fc4e9d2aac6780c5fe7d7d7d9f7af4319
menu: lazily generate menu scenes

This removes the need to call update_client_list_combined_menu()
and update_client_send_to_menu() every time a root menu is opened.

This commit also fixed the incorrect menu position with following
configuration:
  <menu id="foo" label="foo">
    <item label="aaaaaa"/>
    <item label="bbbbbb"/>
  </menu>
  <menu id="root-menu">
    <menu id="foo" />
    <menu id="foo" />
  </menu>
include/menu/menu.h
src/action.c
src/menu/menu.c