1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 09:28:13 +00:00

WindowServer: Always include the system menu in the menubar.

Solve this by adding a for_each_active_menubar_menu() iteration helper that
automagically visits the system menu before the current menubar's menus.
This commit is contained in:
Andreas Kling 2019-02-12 08:47:38 +01:00
parent 15b4c9f9f1
commit 5cd588a497
2 changed files with 11 additions and 3 deletions

View file

@ -75,6 +75,7 @@ private:
void set_active_window(WSWindow*);
template<typename Callback> void for_each_active_menubar_menu(Callback);
void close_current_menu();
WSMenu& create_menu(String&& name);