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:
parent
368fe0f7f8
commit
1c31bcb24e
7 changed files with 39 additions and 2 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue