mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 16:49:54 +00:00
WindowServer: Allow changing frameless state after a window is created
This commit is contained in:
parent
368fe0f7f8
commit
1c31bcb24e
Notes:
sideshowbarker
2024-07-18 22:04:17 +09:00
Author: https://github.com/tomuta
Commit: 1c31bcb24e
Pull-request: https://github.com/SerenityOS/serenity/pull/5445
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