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
commit 5cd588a497
Notes: sideshowbarker 2024-07-19 15:46:53 +09:00
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);