diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-05-02 05:20:28 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-02 08:11:38 +0200 |
commit | 889359b6f99a8ff043680ec5594dc369a9a372d9 (patch) | |
tree | 17eadf108b44ea2501f789583ba82fb940bda1fa /Userland/Services/WindowServer/WMClientConnection.cpp | |
parent | 7cf2839a262a38e00f110bee1102020c658ac476 (diff) | |
download | serenity-889359b6f99a8ff043680ec5594dc369a9a372d9.zip |
Userland: Make IPC handlers return void if they don't have any outputs
Diffstat (limited to 'Userland/Services/WindowServer/WMClientConnection.cpp')
-rw-r--r-- | Userland/Services/WindowServer/WMClientConnection.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Userland/Services/WindowServer/WMClientConnection.cpp b/Userland/Services/WindowServer/WMClientConnection.cpp index 4ffe9b6a04..d684e2bda3 100644 --- a/Userland/Services/WindowServer/WMClientConnection.cpp +++ b/Userland/Services/WindowServer/WMClientConnection.cpp @@ -33,16 +33,15 @@ void WMClientConnection::die() }); } -Messages::WindowManagerServer::SetAppletAreaPositionResponse WMClientConnection::handle(const Messages::WindowManagerServer::SetAppletAreaPosition& message) +void WMClientConnection::handle(const Messages::WindowManagerServer::SetAppletAreaPosition& message) { if (m_window_id < 0) { did_misbehave("SetAppletAreaPosition: WM didn't assign window as manager yet"); // FIXME: return ok boolean? - return {}; + return; } AppletManager::the().set_position(message.position()); - return {}; } void WMClientConnection::handle(const Messages::WindowManagerServer::SetActiveWindow& message) @@ -116,21 +115,18 @@ void WMClientConnection::handle(const Messages::WindowManagerServer::SetWindowMi WindowManager::the().minimize_windows(window, message.minimized()); } -Messages::WindowManagerServer::SetEventMaskResponse WMClientConnection::handle(const Messages::WindowManagerServer::SetEventMask& message) +void WMClientConnection::handle(const Messages::WindowManagerServer::SetEventMask& message) { m_event_mask = message.event_mask(); - return {}; } -Messages::WindowManagerServer::SetManagerWindowResponse WMClientConnection::handle(const Messages::WindowManagerServer::SetManagerWindow& message) +void WMClientConnection::handle(const Messages::WindowManagerServer::SetManagerWindow& message) { m_window_id = message.window_id(); // Let the window manager know that we obtained a manager window, and should // receive information about other windows. WindowManager::the().greet_window_manager(*this); - - return {}; } void WMClientConnection::handle(const Messages::WindowManagerServer::SetWindowTaskbarRect& message) |