1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:47:35 +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())

View file

@ -58,7 +58,7 @@ public:
bool is_maximized() const;
bool is_frameless() const { return m_frameless; }
void set_frameless(bool frameless) { m_frameless = frameless; }
void set_frameless(bool);
bool is_resizable() const { return m_resizable; }
void set_resizable(bool resizable) { m_resizable = resizable; }