mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user