From: John Mullen Date: Mon, 5 Jun 2017 19:40:43 +0000 (-0400) Subject: Fix issue #3229 Barcode Scanner USB - missing double characters X-Git-Tag: 2.0.0-rc0~11^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de1868b6ab1b906977b24c6d445cd1ba8a802c75;p=platform%2Fupstream%2Ffreerdp.git Fix issue #3229 Barcode Scanner USB - missing double characters With some usb barcode scanners, repeated characters do not appear in the freerdp session. It looks like this is because the KeyRelease signal is not sent for the first character. Removing this if check fixes the problem. --- diff --git a/client/X11/xf_event.c b/client/X11/xf_event.c index d1a30f4..4e1a8fa 100644 --- a/client/X11/xf_event.c +++ b/client/X11/xf_event.c @@ -492,18 +492,6 @@ static BOOL xf_event_KeyRelease(xfContext* xfc, XEvent* event, BOOL app) KeySym keysym; char str[256]; - if (XPending(xfc->display)) - { - ZeroMemory(&nextEvent, sizeof(nextEvent)); - XPeekEvent(xfc->display, &nextEvent); - - if (nextEvent.type == KeyPress) - { - if (nextEvent.xkey.keycode == event->xkey.keycode) - return TRUE; - } - } - XLookupString((XKeyEvent*) event, str, sizeof(str), &keysym, NULL); xf_keyboard_key_release(xfc, event->xkey.keycode, keysym); return TRUE;