From 4c68b232fb74adbee9dcdcfc071b164f1abca1fb Mon Sep 17 00:00:00 2001 From: yuri_k7 Date: Sat, 3 Aug 2024 22:01:28 +0200 Subject: [PATCH] server: Fix repeated key for no reason --- server/queue.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/queue.c b/server/queue.c index 18b08f1480b..888286c2a8c 100644 --- a/server/queue.c +++ b/server/queue.c @@ -2433,11 +2433,10 @@ static int queue_keyboard_message( struct desktop *desktop, user_handle_t win, c } } - if (origin == IMO_HARDWARE) + if ((origin == IMO_HARDWARE) && (input->kbd.scan == desktop->key_repeat.input.kbd.scan)) { /* if the repeat key is released, stop auto-repeating */ - if (((input->kbd.flags & KEYEVENTF_KEYUP) && - (input->kbd.scan == desktop->key_repeat.input.kbd.scan))) + if (input->kbd.flags & KEYEVENTF_KEYUP) { stop_key_repeat( desktop ); }