From 1c31bcb24e4b701be373f6dad567a554535fb492 Mon Sep 17 00:00:00 2001 From: Tom Date: Sat, 20 Feb 2021 23:10:21 -0700 Subject: WindowServer: Allow changing frameless state after a window is created --- Userland/Services/WindowServer/ClientConnection.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Userland/Services/WindowServer/ClientConnection.cpp') diff --git a/Userland/Services/WindowServer/ClientConnection.cpp b/Userland/Services/WindowServer/ClientConnection.cpp index b83461678c..2626d9c4fb 100644 --- a/Userland/Services/WindowServer/ClientConnection.cpp +++ b/Userland/Services/WindowServer/ClientConnection.cpp @@ -286,6 +286,18 @@ OwnPtr ClientConnection::handle(c return make(); } +OwnPtr ClientConnection::handle(const Messages::WindowServer::SetFrameless& message) +{ + auto it = m_windows.find(message.window_id()); + if (it == m_windows.end()) { + did_misbehave("SetFrameless: Bad window ID"); + return {}; + } + it->value->set_frameless(message.frameless()); + WindowManager::the().tell_wm_listeners_window_state_changed(*it->value); + return make(); +} + OwnPtr ClientConnection::handle(const Messages::WindowServer::SetWindowOpacity& message) { auto it = m_windows.find(message.window_id()); -- cgit v1.2.3