winex11: use XkbKeycodeToKeysym when using XKB

Alexandre Goujon ale.goujon at gmail.com
Thu Apr 22 08:17:46 CDT 2010


---
 dlls/winex11.drv/x11drv.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/winex11.drv/x11drv.h b/dlls/winex11.drv/x11drv.h
index 4a3f8b7..d98815b 100644
--- a/dlls/winex11.drv/x11drv.h
+++ b/dlls/winex11.drv/x11drv.h
@@ -609,6 +609,11 @@ extern HMODULE x11drv_module;
 extern BYTE key_state_table[256];
 extern POINT cursor_pos;
 
+#ifdef HAVE_XKB
+#define XKeycodeToKeysym(dpy,kc,i) \
+    ( use_xkb ? XkbKeycodeToKeysym(dpy, kc, 0, i) : XKeycodeToKeysym(dpy, kc, i) )
+#endif
+
 /* atoms */
 
 enum x11drv_atoms
-- 
1.6.3.3




More information about the wine-patches mailing list