mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:57:35 +00:00
WindowServer: Remember the correct untiled rect
What a silly logic bug! :)
This commit is contained in:
parent
399908e53c
commit
6a552f0b93
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