LibGUI+WindowServer: Mark minimized window backing stores as volatile

WindowServer will now send out a WindowStateChanged message to clients
when one of their windows is minimized.

This is then forwarded to the GWindow, which will try to mark its
underlying window backing store as volatile.

This allows the kernel to steal the memory used by minimized windows
in case it starts running low. Very cool! :^)
This commit is contained in:
Andreas Kling 2019-12-26 12:06:07 +01:00
commit 519cb80a96
Notes: sideshowbarker 2024-07-19 10:39:17 +09:00
6 changed files with 27 additions and 0 deletions

View file

@ -45,4 +45,5 @@ private:
virtual void handle(const WindowClient::DragAccepted&) override;
virtual void handle(const WindowClient::DragCancelled&) override;
virtual void handle(const WindowClient::UpdateSystemTheme&) override;
virtual void handle(const WindowClient::WindowStateChanged&) override;
};