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:
parent
58a34fbe09
commit
751f813f6a
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…
Add table
Add a link
Reference in a new issue