1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:27:34 +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

@ -3,10 +3,10 @@ endpoint WindowServer
greet() => (Gfx::IntRect screen_rect, Core::AnonymousBuffer theme_buffer)
create_menubar() => (i32 menubar_id)
destroy_menubar(i32 menubar_id) => ()
destroy_menubar(i32 menubar_id) =|
create_menu([UTF8] String menu_title) => (i32 menu_id)
destroy_menu(i32 menu_id) => ()
destroy_menu(i32 menu_id) =|
add_menu_to_menubar(i32 menubar_id, i32 menu_id) =|