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
commit 191073000e
Notes: sideshowbarker 2024-07-19 06:20:53 +09:00
6 changed files with 32 additions and 42 deletions

View file

@ -162,7 +162,7 @@ void WindowSwitcher::select_window_at_index(int index)
void WindowSwitcher::redraw()
{
draw();
WindowManager::the().invalidate(m_rect);
Compositor::the().invalidate(m_rect);
}
Gfx::Rect WindowSwitcher::item_rect(int index) const