From 1d6d28be85e43d81a6385a9cbcbac61639eec588 Mon Sep 17 00:00:00 2001 From: houmain Date: Sat, 24 Aug 2024 11:40:56 +0200 Subject: [PATCH] Fixed leaking of unmapped mouse input on Windows --- src/server/windows/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/windows/main.cpp b/src/server/windows/main.cpp index 4bb1815..d7e6c9b 100644 --- a/src/server/windows/main.cpp +++ b/src/server/windows/main.cpp @@ -260,7 +260,7 @@ namespace { bool translate_mouse_input(WPARAM wparam, const MSLLHOOKSTRUCT& ms) { const auto injected = (ms.dwExtraInfo == injected_ident); - if (injected || g_state.sending_key()) + if (injected) return false; const auto input = get_button_event(wparam, ms);