mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:27:43 +00:00
WindowServer: Send menu_item_activated before visibility_did_change
This commit is contained in:
parent
bab9e75a96
commit
b8219e2cc4
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…
Add table
Add a link
Reference in a new issue