mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:47:35 +00:00
WindowServer+LibGUI: Make menubar allocation asynchronous
Same as with menu allocation, move menubar ID management to the client side, removing more IPC stalls during application startup.
This commit is contained in:
parent
baab0a5bef
commit
7e799529b9
4 changed files with 9 additions and 7 deletions
|
@ -89,7 +89,7 @@ private:
|
|||
void destroy_window(Window&, Vector<i32>& destroyed_window_ids);
|
||||
|
||||
virtual Messages::WindowServer::GreetResponse greet() override;
|
||||
virtual Messages::WindowServer::CreateMenubarResponse create_menubar() override;
|
||||
virtual void create_menubar(i32) override;
|
||||
virtual void destroy_menubar(i32) override;
|
||||
virtual void create_menu(i32, String const&) override;
|
||||
virtual void destroy_menu(i32) override;
|
||||
|
@ -160,7 +160,6 @@ private:
|
|||
|
||||
RefPtr<Core::Timer> m_ping_timer;
|
||||
|
||||
int m_next_menubar_id { 10000 };
|
||||
int m_next_window_id { 1982 };
|
||||
|
||||
bool m_has_display_link { false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue