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:
parent
b1fe5d5517
commit
fb93535419
3 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue