1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:48:11 +00:00

WindowServer: Update desktop window rect on resolution change

Fixes #2073.
This commit is contained in:
Linus Groh 2020-05-02 22:20:37 +01:00 committed by Andreas Kling
parent 58a34fbe09
commit 751f813f6a

View file

@ -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;
});