1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:27:45 +00:00

WindowServer+LibGUI: Make menu and menubar teardown asynchronous

Clients don't need to wait for WindowServer to tear down a menu or
menubar before continuing.
This commit is contained in:
Andreas Kling 2021-05-10 11:52:30 +02:00
parent b1fe5d5517
commit fb93535419
3 changed files with 4 additions and 4 deletions

View file

@ -123,7 +123,7 @@ void Menu::unrealize_menu()
if (m_menu_id == -1)
return;
all_menus().remove(m_menu_id);
WindowServerConnection::the().destroy_menu(m_menu_id);
WindowServerConnection::the().async_destroy_menu(m_menu_id);
m_menu_id = -1;
}