mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 17:49:40 +00:00
WindowServer: Remember the correct untiled rect
What a silly logic bug! :)
This commit is contained in:
parent
399908e53c
commit
6a552f0b93
Notes:
sideshowbarker
2024-07-18 22:56:32 +09:00
Author: https://github.com/BenWiederhake
Commit: 6a552f0b93
Pull-request: https://github.com/SerenityOS/serenity/pull/5060
1 changed files with 3 additions and 2 deletions
|
@ -688,9 +688,10 @@ void Window::set_tiled(WindowTileType tiled)
|
||||||
if (resize_aspect_ratio().has_value())
|
if (resize_aspect_ratio().has_value())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
m_tiled = tiled;
|
if (m_tiled == WindowTileType::None)
|
||||||
if (tiled != WindowTileType::None)
|
|
||||||
m_untiled_rect = m_rect;
|
m_untiled_rect = m_rect;
|
||||||
|
m_tiled = tiled;
|
||||||
|
|
||||||
set_rect(tiled_rect(tiled));
|
set_rect(tiled_rect(tiled));
|
||||||
Core::EventLoop::current().post_event(*this, make<ResizeEvent>(m_rect));
|
Core::EventLoop::current().post_event(*this, make<ResizeEvent>(m_rect));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue