mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-06 13:35:03 +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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user