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

WindowServer: Only invalidate the menubar rect when an app changes menubar.

This commit is contained in:
Andreas Kling 2019-02-26 01:07:10 +01:00
parent 51a3f20445
commit b341cab9cc

View file

@ -1031,12 +1031,12 @@ const WSClientConnection* WSWindowManager::active_client() const
{
if (m_active_window)
return m_active_window->client();
return 0;
return nullptr;
}
void WSWindowManager::notify_client_changed_app_menubar(WSClientConnection& client)
{
if (active_client() == &client)
set_current_menubar(client.app_menubar());
invalidate();
invalidate(menubar_rect());
}