summaryrefslogtreecommitdiff
path: root/WindowServer/WSMessageLoop.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-16 01:09:27 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-16 01:09:27 +0100
commit746144f783c1121bba1cc0a2214eb65d7e6b6ad1 (patch)
tree47b4cac64e35328d84948f6e1f3b4893a7c3916a /WindowServer/WSMessageLoop.cpp
parent2b6cf37d208c45cc0d58b5630cc060a0315b7d87 (diff)
downloadserenity-746144f783c1121bba1cc0a2214eb65d7e6b6ad1.zip
WindowServer: Add missing handling of AddMenuSeparator client request.
Diffstat (limited to 'WindowServer/WSMessageLoop.cpp')
-rw-r--r--WindowServer/WSMessageLoop.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/WindowServer/WSMessageLoop.cpp b/WindowServer/WSMessageLoop.cpp
index 0101d6d1b8..1d8f8a92e3 100644
--- a/WindowServer/WSMessageLoop.cpp
+++ b/WindowServer/WSMessageLoop.cpp
@@ -279,6 +279,9 @@ void WSMessageLoop::on_receive_from_client(int client_id, const WSAPI_ClientMess
ASSERT(message.menu.shortcut_text_length < (ssize_t)sizeof(message.menu.shortcut_text));
post_message(client, make<WSAPIAddMenuItemRequest>(client_id, message.menu.menu_id, message.menu.identifier, String(message.text, message.text_length), String(message.menu.shortcut_text, message.menu.shortcut_text_length)));
break;
+ case WSAPI_ClientMessage::Type::AddMenuSeparator:
+ post_message(client, make<WSAPIAddMenuSeparatorRequest>(client_id, message.menu.menu_id));
+ break;
case WSAPI_ClientMessage::Type::CreateWindow:
ASSERT(message.text_length < (ssize_t)sizeof(message.text));
post_message(client, make<WSAPICreateWindowRequest>(client_id, message.window.rect, String(message.text, message.text_length), message.window.has_alpha_channel, message.window.opacity, message.window.base_size, message.window.size_increment));