1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 01:37:34 +00:00

WindowServer: Allow changing frameless state after a window is created

This commit is contained in:
Tom 2021-02-20 23:10:21 -07:00 committed by Andreas Kling
parent 368fe0f7f8
commit 1c31bcb24e
7 changed files with 39 additions and 2 deletions

View file

@ -871,6 +871,16 @@ void Window::set_fullscreen(bool fullscreen)
WindowServerConnection::the().send_sync<Messages::WindowServer::SetFullscreen>(m_window_id, fullscreen);
}
void Window::set_frameless(bool frameless)
{
if (m_frameless == frameless)
return;
m_frameless = frameless;
if (!is_visible())
return;
WindowServerConnection::the().send_sync<Messages::WindowServer::SetFrameless>(m_window_id, frameless);
}
bool Window::is_maximized() const
{
if (!is_visible())