mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:57:44 +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
|
@ -37,7 +37,7 @@ void Menubar::unrealize_menubar()
|
|||
{
|
||||
if (m_menubar_id == -1)
|
||||
return;
|
||||
WindowServerConnection::the().destroy_menubar(m_menubar_id);
|
||||
WindowServerConnection::the().async_destroy_menubar(m_menubar_id);
|
||||
m_menubar_id = -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue