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

WindowServer: Add a window minimization button.

The window is simply ignored in the painting and hit testing traversal
when in minimized state, same as we do for invisible windows.

The WM_SetActiveWindow message (sent by Taskbar) brings it back into the
non-minimized state. :^)
This commit is contained in:
Andreas Kling 2019-04-05 22:32:00 +02:00
parent 0fc3ccaa52
commit f6ca94605c
6 changed files with 49 additions and 3 deletions

View file

@ -112,6 +112,14 @@ static WSAPI_WindowType to_api(WSWindowType ws_type)
}
}
void WSWindow::set_minimized(bool minimized)
{
if (m_minimized == minimized)
return;
m_minimized = minimized;
invalidate();
}
void WSWindow::on_message(const WSMessage& message)
{
if (m_internal_owner)