1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:27:45 +00:00

WindowServer: Rename Window::tiled() => tile_type() and add is_tiled()

This seems more consistent with naming conventions across the system
and makes conditionals easier to read.
This commit is contained in:
thankyouverycool 2022-02-07 13:06:28 -05:00 committed by Andreas Kling
parent d3c25b8ea2
commit 3d7e701451
4 changed files with 33 additions and 32 deletions

View file

@ -532,7 +532,7 @@ Gfx::IntRect WindowFrame::rect() const
Gfx::IntRect WindowFrame::constrained_render_rect_to_screen(const Gfx::IntRect& render_rect) const
{
if (m_window.is_maximized() || m_window.tiled() != WindowTileType::None)
if (m_window.is_maximized() || m_window.is_tiled())
return render_rect.intersected(Screen::closest_to_rect(rect()).rect());
return render_rect;
}