mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
WindowServer: Update desktop window rect on resolution change
Fixes #2073.
This commit is contained in:
parent
58a34fbe09
commit
751f813f6a
Notes:
sideshowbarker
2024-07-19 07:01:54 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/751f813f6a7 Pull-request: https://github.com/SerenityOS/serenity/pull/2074 Issue: https://github.com/SerenityOS/serenity/issues/2073
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue