mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:17:45 +00:00
WindowServer+LibGUI: Mark window bitmaps volatile in occluded windows
WindowServer now tracks whether windows are occluded (meaning that they are completely covered by one or more opaque windows sitting above them.) This state is communicated to the windows via WindowStateChanged messages, which then allow GWindow to mark its backing store volatile. This reduces the effective memory impact of windows that are not at all visible to the user. Very cool. :^)
This commit is contained in:
parent
5d1acdda82
commit
c7847d7c81
9 changed files with 72 additions and 10 deletions
|
@ -12,7 +12,7 @@ endpoint WindowClient = 4
|
|||
KeyUp(i32 window_id, u8 character, u32 key, u32 modifiers) =|
|
||||
WindowActivated(i32 window_id) =|
|
||||
WindowDeactivated(i32 window_id) =|
|
||||
WindowStateChanged(i32 window_id, bool minimized) =|
|
||||
WindowStateChanged(i32 window_id, bool minimized, bool occluded) =|
|
||||
WindowCloseRequest(i32 window_id) =|
|
||||
WindowResized(i32 window_id, Rect old_rect, Rect new_rect) =|
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue