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