mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
WindowServer: Send menu_item_activated before visibility_did_change
This commit is contained in:
parent
bab9e75a96
commit
b8219e2cc4
Notes:
sideshowbarker
2024-07-16 21:45:42 +09:00
Author: https://github.com/bplaat Commit: https://github.com/SerenityOS/serenity/commit/b8219e2cc4 Pull-request: https://github.com/SerenityOS/serenity/pull/22187
1 changed files with 3 additions and 3 deletions
|
@ -559,6 +559,9 @@ void Menu::did_activate(MenuItem& item, bool leave_menu_open)
|
|||
if (item.type() == MenuItem::Type::Separator)
|
||||
return;
|
||||
|
||||
if (m_client)
|
||||
m_client->async_menu_item_activated(m_menu_id, item.identifier());
|
||||
|
||||
if (!leave_menu_open)
|
||||
start_activation_animation(item);
|
||||
|
||||
|
@ -567,9 +570,6 @@ void Menu::did_activate(MenuItem& item, bool leave_menu_open)
|
|||
|
||||
if (!leave_menu_open)
|
||||
MenuManager::the().close_everyone();
|
||||
|
||||
if (m_client)
|
||||
m_client->async_menu_item_activated(m_menu_id, item.identifier());
|
||||
}
|
||||
|
||||
bool Menu::activate_default()
|
||||
|
|
Loading…
Reference in a new issue