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

WindowServer: Remove WindowManager::invalidate(Window) API's

Instead, we now tell Windows to invalidate themselves. Window will then
pass on the requests to Compositor.

My basic idea here is that WindowManager should do window management,
dealing with incoming events, moving, resizing, etc. Compositor should
deal with painting the window stack in the right order with the least
amount of effort. :^)
This commit is contained in:
Andreas Kling 2020-05-19 19:14:20 +02:00
parent 10699b347f
commit 191073000e
6 changed files with 32 additions and 42 deletions

View file

@ -314,7 +314,7 @@ Gfx::Rect WindowFrame::rect() const
void WindowFrame::invalidate_title_bar()
{
WindowManager::the().invalidate(title_bar_rect().translated(rect().location()));
Compositor::the().invalidate(title_bar_rect().translated(rect().location()));
}
void WindowFrame::notify_window_rect_changed(const Gfx::Rect& old_rect, const Gfx::Rect& new_rect)