mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 12:17:35 +00:00
WindowServer: Don't send Paint messages to minimized windows.
There's no point in painting if it can't be seen anyway. We also make sure to request a repaint when un-minimizing, so the window gets a chance to repaint itself then.
This commit is contained in:
parent
48e3ea9e5c
commit
dc919352b0
2 changed files with 5 additions and 1 deletions
|
@ -128,6 +128,8 @@ void WSWindow::set_minimized(bool minimized)
|
|||
if (m_minimized == minimized)
|
||||
return;
|
||||
m_minimized = minimized;
|
||||
if (!minimized)
|
||||
request_update({ { }, size() });
|
||||
invalidate();
|
||||
WSWindowManager::the().notify_minimization_state_changed(*this);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue