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:
parent
51a3f20445
commit
b341cab9cc
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue