diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2008-12-19 16:11:03 +0000 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2010-03-25 13:10:09 +0000 |
commit | 603b206d92928a3a4da58b8656ccf9f78ee0ac10 (patch) | |
tree | 8d53d14e67cf199624a44dfe99c7934b35029456 | |
parent | c7ed2df8b5aecd16de29c5184889f933e306dc79 (diff) |
Cygwin: Force keyboard state onto VCK at startupold-bits-and-pieces
Copy the state of the Windows keyboard device to the Virtual Core Keyboard at startup.
Otherwise, this happens lazily after the first keypress, which can lead to applications
which are started from a shell window and inspect the keyboard state before a character is
typed getting the wrong idea about the desired keymap (e.g. xemacs shows this behaviour)
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
-rw-r--r-- | hw/xwin/winkeybd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xwin/winkeybd.c b/hw/xwin/winkeybd.c index ad9e66a0b..66e601dbd 100644 --- a/hw/xwin/winkeybd.c +++ b/hw/xwin/winkeybd.c @@ -190,7 +190,7 @@ winKeybdProc (DeviceIntPtr pDeviceInt, int iState) // immediately copy the state of this keyboard device to the VCK // (which otherwise happens lazily after the first keypress) - CopyKeyClass(pDeviceInt, inputInfo.keyboard); + SwitchCoreKeyboard(pDeviceInt); break; case DEVICE_CLOSE: |