mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 12:49:08 +00:00
WindowServer: Only invalidate the menubar rect when an app changes menubar.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user