From a2ce4815861979c495fec7e0a15ee2527134bc1c Mon Sep 17 00:00:00 2001 From: Bernhard Miklautz Date: Mon, 9 Sep 2013 18:41:57 +0200 Subject: [PATCH] x11/client: win8/server 2k12 fix for kbd sync Keyboard indicator sync (caps lock/num lock/..) didn't work properly on reconnect for windows 8 and windows 2012 server. fixes #773 --- client/X11/xf_client.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/X11/xf_client.c b/client/X11/xf_client.c index 886c3a8d2..338bcf3d4 100644 --- a/client/X11/xf_client.c +++ b/client/X11/xf_client.c @@ -1407,9 +1407,15 @@ void* xf_thread(void* param) rcount = 0; wcount = 0; + /* + * win8 and server 2k12 seem to have some timing issue/race condition + * when a initial sync request is send to sync the keyboard inidcators + * sending the sync event twice fixed this problem + */ if (freerdp_focus_required(instance)) { xf_kbd_focus_in(xfc); + xf_kbd_focus_in(xfc); } if (!async_transport)