1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:28:12 +00:00

WindowServer: Make way for the out-of-process system menu

This patch removes the internal system menu from WindowServer and
replaces it with two IPC API's:

    SetSystemMenu(menu_id)
    SetSystemTheme(theme_path, theme_name)

These API's will allow us to complete the SystemMenu program and
move it entirely out of process.
This commit is contained in:
Andreas Kling 2020-02-17 20:05:14 +01:00
parent 189fa68c0b
commit 84520d8b59
8 changed files with 63 additions and 165 deletions

View file

@ -74,9 +74,8 @@ void MenuItem::set_checked(bool checked)
Menu* MenuItem::submenu()
{
ASSERT(is_submenu());
if (m_menu.client())
return m_menu.client()->find_menu_by_id(m_submenu_id);
return MenuManager::the().find_internal_menu_by_id(m_submenu_id);
ASSERT(m_menu.client());
return m_menu.client()->find_menu_by_id(m_submenu_id);
}
Gfx::Rect MenuItem::rect() const