WindowServer: Remove the global app menu

The SetApplicationMenu IPC message is still there, since we also need
to clean up all of the client code before we can remove that.
This commit is contained in:
Andreas Kling 2021-03-25 21:19:05 +01:00
commit fcc8e3484f
Notes: sideshowbarker 2024-07-18 21:05:40 +09:00
6 changed files with 3 additions and 48 deletions

View file

@ -1370,11 +1370,6 @@ void WindowManager::set_active_window(Window* window, bool make_input)
m_active_window = *window;
Core::EventLoop::current().post_event(*m_active_window, make<Event>(Event::WindowActivated));
m_active_window->invalidate(true, true);
if (auto* client = window->client()) {
MenuManager::the().set_current_menubar(client->app_menubar());
} else {
MenuManager::the().set_current_menubar(nullptr);
}
tell_wm_listeners_window_state_changed(*m_active_window);
} else {
MenuManager::the().set_current_menubar(nullptr);
@ -1406,12 +1401,6 @@ const ClientConnection* WindowManager::active_client() const
return nullptr;
}
void WindowManager::notify_client_changed_app_menubar(ClientConnection& client)
{
if (active_client() == &client)
MenuManager::the().set_current_menubar(client.app_menubar());
}
const Cursor& WindowManager::active_cursor() const
{
if (m_dnd_client)