From 8a5efef6221c09f09406f0bada0fa82f197c6ef5 Mon Sep 17 00:00:00 2001 From: Quantum Date: Sun, 15 Aug 2021 18:11:36 -0400 Subject: [PATCH] [client] spice: avoid spice_key_modifiers when input is disabled --- client/src/app.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/app.c b/client/src/app.c index e31d7927..5aa1f3c1 100644 --- a/client/src/app.c +++ b/client/src/app.c @@ -414,6 +414,9 @@ void app_handleKeyboardModifiers(bool ctrl, bool shift, bool alt, bool super) void app_handleKeyboardLEDs(bool numLock, bool capsLock, bool scrollLock) { + if (!core_inputEnabled()) + return; + uint32_t modifiers = (scrollLock ? 1 /* SPICE_SCROLL_LOCK_MODIFIER */ : 0) | (numLock ? 2 /* SPICE_NUM_LOCK_MODIFIER */ : 0) |