mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
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:
parent
497d48a8de
commit
f8d65e57ba
5 changed files with 22 additions and 23 deletions
|
@ -465,6 +465,7 @@ Gfx::IntRect WindowFrame::render_rect() const
|
|||
|
||||
void WindowFrame::invalidate_title_bar()
|
||||
{
|
||||
m_dirty = true;
|
||||
invalidate(title_bar_rect());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue