mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +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
Notes:
sideshowbarker
2024-07-18 22:26:34 +09:00
Author: https://github.com/tomuta
Commit: f8d65e57ba
Pull-request: https://github.com/SerenityOS/serenity/pull/5288
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