WindowServer: Don't re-render the window frame when not needed

Merely moving a window shouldn't require re-rendering the window
frame anymore now that we cache the rendered frame in bitmaps. This
reduces CPU usage significantly when moving windows.
This commit is contained in:
Tom 2021-02-10 11:54:58 -07:00 committed by Andreas Kling
commit f8d65e57ba
Notes: sideshowbarker 2024-07-18 22:26:34 +09:00
5 changed files with 22 additions and 23 deletions

View file

@ -465,6 +465,7 @@ Gfx::IntRect WindowFrame::render_rect() const
void WindowFrame::invalidate_title_bar()
{
m_dirty = true;
invalidate(title_bar_rect());
}