diff options
author | Robin Burchell <robin+git@viroteck.net> | 2019-07-13 23:50:50 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-07-14 00:06:47 +0200 |
commit | bee4544192a7fb571a2f57d5e00e8fed09bdee5e (patch) | |
tree | 3d5f40bc113e1cc85e4dca4bb6849209c1ddfd27 /Servers/WindowServer/WSEventLoop.cpp | |
parent | 559a999852f0732ae8751ab4ca5711c1e15e5d83 (diff) | |
download | serenity-bee4544192a7fb571a2f57d5e00e8fed09bdee5e.zip |
WSEventLoop: Treat invalid window types the same as unknown window types
And forcefully disconnect the client in both cases.
Diffstat (limited to 'Servers/WindowServer/WSEventLoop.cpp')
-rw-r--r-- | Servers/WindowServer/WSEventLoop.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Servers/WindowServer/WSEventLoop.cpp b/Servers/WindowServer/WSEventLoop.cpp index 58819829ac..9c93e090c0 100644 --- a/Servers/WindowServer/WSEventLoop.cpp +++ b/Servers/WindowServer/WSEventLoop.cpp @@ -212,10 +212,7 @@ bool WSEventLoop::on_receive_from_client(int client_id, const WSAPI_ClientMessag ws_window_type = WSWindowType::Menubar; break; case WSAPI_WindowType::Invalid: - break; // handled below - } - - if (ws_window_type == WSWindowType::Invalid) { + default: dbgprintf("Unknown WSAPI_WindowType: %d\n", message.window.type); client.did_misbehave(); return false; |