mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-22 23:55:12 +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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user