diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-14 08:43:29 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-14 08:43:29 +0100 |
commit | 28da956a12882c4f4c0a66cd8934a95ae9246bd4 (patch) | |
tree | 78f8a1d84513ee0b3d7f3eb45a51cf13abce38a0 /WindowServer/WSMessageLoop.cpp | |
parent | aa7947c88928be64b651be622527e5fe20beca46 (diff) | |
download | serenity-28da956a12882c4f4c0a66cd8934a95ae9246bd4.zip |
WindowServer: Refactor WSClientConnection to have one function per request.
This is a lot nicer than the big switch full of code. This stuff has a bit
of a "please generate me instead" vibe to it, but I need to mess around with
it some more to figure out what the needs are.
This patch also unbreaks global cursor tracking, which was forgotten in the
big messaging refactoring.
Diffstat (limited to 'WindowServer/WSMessageLoop.cpp')
-rw-r--r-- | WindowServer/WSMessageLoop.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WindowServer/WSMessageLoop.cpp b/WindowServer/WSMessageLoop.cpp index 40b3cb1a16..1898c55d8d 100644 --- a/WindowServer/WSMessageLoop.cpp +++ b/WindowServer/WSMessageLoop.cpp @@ -344,7 +344,7 @@ ssize_t WSMessageLoop::on_receive_from_client(int client_id, const byte* data, s post_message(client, make<WSAPIReleaseWindowBackingStoreRequest>(client_id, (int)message.backing.backing_store_id)); break; case GUI_ClientMessage::Type::SetGlobalCursorTracking: - post_message(client, make<WSAPISetGlobalCursorTrackingRequest>(client_id, message.value)); + post_message(client, make<WSAPISetGlobalCursorTrackingRequest>(client_id, message.window_id, message.value)); break; } server_process().request_wakeup(); |