summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2020-05-02 22:20:37 +0100
committerAndreas Kling <kling@serenityos.org>2020-05-03 00:41:35 +0200
commit751f813f6a75befa324d1a2ad7b89f4d27081c05 (patch)
treefedb62fbeddc01513661ee9ed7ec6333ce6e5373
parent58a34fbe09a7bb54f98310da3543468ec95b195f (diff)
downloadserenity-751f813f6a75befa324d1a2ad7b89f4d27081c05.zip
WindowServer: Update desktop window rect on resolution change
Fixes #2073.
-rw-r--r--Servers/WindowServer/WindowManager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Servers/WindowServer/WindowManager.cpp b/Servers/WindowServer/WindowManager.cpp
index 7503a637e5..2b168107d1 100644
--- a/Servers/WindowServer/WindowManager.cpp
+++ b/Servers/WindowServer/WindowManager.cpp
@@ -142,6 +142,8 @@ bool WindowManager::set_resolution(int width, int height)
});
if (success) {
for_each_window([](Window& window) {
+ if (window.type() == WindowType::Desktop)
+ window.set_rect(WindowManager::the().desktop_rect());
window.recalculate_rect();
return IterationDecision::Continue;
});