summaryrefslogtreecommitdiff
path: root/Userland/Services/WindowServer/ClientConnection.cpp
diff options
context:
space:
mode:
authorTom <tomut@yahoo.com>2021-02-10 11:54:58 -0700
committerAndreas Kling <kling@serenityos.org>2021-02-10 23:03:22 +0100
commitf8d65e57ba313d70e3f176a677da6b7671ced9d7 (patch)
treedb693f6421f8316ef596051b55233ccc5d9b1b93 /Userland/Services/WindowServer/ClientConnection.cpp
parent497d48a8dea09c10e5e10dc9de9b329ba7d7e6ef (diff)
downloadserenity-f8d65e57ba313d70e3f176a677da6b7671ced9d7.zip
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.
Diffstat (limited to 'Userland/Services/WindowServer/ClientConnection.cpp')
-rw-r--r--Userland/Services/WindowServer/ClientConnection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/WindowServer/ClientConnection.cpp b/Userland/Services/WindowServer/ClientConnection.cpp
index eaaf007bbb..580ecfcf63 100644
--- a/Userland/Services/WindowServer/ClientConnection.cpp
+++ b/Userland/Services/WindowServer/ClientConnection.cpp
@@ -466,7 +466,7 @@ OwnPtr<Messages::WindowServer::CreateWindowResponse> ClientConnection::handle(co
window->set_size_increment(message.size_increment());
window->set_base_size(message.base_size());
window->set_resize_aspect_ratio(message.resize_aspect_ratio());
- window->invalidate();
+ window->invalidate(true, true);
if (window->type() == WindowType::MenuApplet)
AppletManager::the().add_applet(*window);
m_windows.set(window_id, move(window));