From ba286684c488cfd174c3c0f8b824fc3372189061 Mon Sep 17 00:00:00 2001 From: abma Date: Fri, 15 Jan 2016 01:59:08 +0100 Subject: [PATCH] fix keyboard release (thanks hardening!) --- client/X11/xf_keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/X11/xf_keyboard.c b/client/X11/xf_keyboard.c index 02af8c30d..3e11b9545 100644 --- a/client/X11/xf_keyboard.c +++ b/client/X11/xf_keyboard.c @@ -179,7 +179,7 @@ void xf_keyboard_release_all_keypress(xfContext* xfc) for (keycode = 0; keycode < ARRAYSIZE(xfc->KeyboardState); keycode++) { - if (!xfc->KeyboardState[keycode]) + if (xfc->KeyboardState[keycode]) { rdp_scancode = freerdp_keyboard_get_rdp_scancode_from_x11_keycode(keycode);