1
Fork 0
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:
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

@ -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;
}