shadow: fix X11 extended keycodes
authorMarc-André Moreau <marcandre.moreau@gmail.com>
Fri, 26 Sep 2014 21:51:45 +0000 (17:51 -0400)
committerMarc-André Moreau <marcandre.moreau@gmail.com>
Fri, 26 Sep 2014 21:51:45 +0000 (17:51 -0400)
server/shadow/X11/x11_shadow.c

index 901749e..0c9ade7 100644 (file)
@@ -69,6 +69,10 @@ void x11_shadow_input_keyboard_event(x11ShadowSubsystem* subsystem, UINT16 flags
                code |= KBDEXT;
 
        vkcode = GetVirtualKeyCodeFromVirtualScanCode(code, 4);
+
+       if (extended)
+               vkcode |= KBDEXT;
+
        keycode = GetKeycodeFromVirtualKeyCode(vkcode, KEYCODE_TYPE_EVDEV);
 
        if (keycode != 0)