From a237cbacdb038f3381d6afa6769b8e0f1e8bfe01 Mon Sep 17 00:00:00 2001 From: crs Date: Wed, 3 Sep 2003 21:22:25 +0000 Subject: [PATCH] Fixed suppression of auto-repeat for keys that don't auto-repeat. Had forgotten to query the auto-repeat per-key mask. --- lib/platform/CXWindowsKeyMapper.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/platform/CXWindowsKeyMapper.cpp b/lib/platform/CXWindowsKeyMapper.cpp index 80ecbc37..e1e4ab9f 100644 --- a/lib/platform/CXWindowsKeyMapper.cpp +++ b/lib/platform/CXWindowsKeyMapper.cpp @@ -98,6 +98,9 @@ CXWindowsKeyMapper::update(Display* display, IKeyState* keyState) char keys[32]; XQueryKeymap(display, keys); + // save the auto-repeat mask + XGetKeyboardControl(display, &m_keyControl); + // query the pointer to get the keyboard state Window root = DefaultRootWindow(display), window; int xRoot, yRoot, xWindow, yWindow;