mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 17:05:10 +00:00
WindowServer: don't send resize on resolution change unless needed
fixes #2575 The extra ResizeEvent would be handled after on_rect_change, and would reset the size of main_widget to what it was before the resize. Bonus: Less unnecessary events.
This commit is contained in:
parent
951a429268
commit
f833362536
2 changed files with 12 additions and 5 deletions
|
@ -142,8 +142,6 @@ 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