diff --git a/Services/WindowServer/ClientConnection.h b/Services/WindowServer/ClientConnection.h index ac62c887144..3ae22199b22 100644 --- a/Services/WindowServer/ClientConnection.h +++ b/Services/WindowServer/ClientConnection.h @@ -72,6 +72,13 @@ public: return nullptr; return const_cast(menu.value().ptr()); } + const Menu* find_menu_by_id(int menu_id) const + { + auto menu = m_menus.get(menu_id); + if (!menu.has_value()) + return nullptr; + return menu.value().ptr(); + } void notify_display_link(Badge);