1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 01:51:03 +09:00

LibGUI: Add a new Window::is_maximized method

This commit is contained in:
Hüseyin ASLITÜRK 2020-06-18 13:31:29 +03:00 committed by Andreas Kling
parent 5950736efa
commit 12671e38e7
Notes: sideshowbarker 2024-07-19 05:33:29 +09:00
2 changed files with 10 additions and 0 deletions

View file

@ -682,6 +682,14 @@ void Window::set_fullscreen(bool fullscreen)
WindowServerConnection::the().send_sync<Messages::WindowServer::SetFullscreen>(m_window_id, fullscreen);
}
bool Window::is_maximized() const
{
if (!is_visible())
return false;
return WindowServerConnection::the().send_sync<Messages::WindowServer::IsMaximized>(m_window_id)->maximized();
}
void Window::schedule_relayout()
{
if (m_layout_pending)