Ken Thomases : winex11: Be more conservative when matching keys from built-in layout tables.

Alexandre Julliard julliard at winehq.org
Fri Jun 1 13:25:59 CDT 2012


Module: wine
Branch: master
Commit: 43984f355a2905e16075a9df3d7fbe463761e853
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=43984f355a2905e16075a9df3d7fbe463761e853

Author: Ken Thomases <ken at codeweavers.com>
Date:   Thu May 31 15:33:23 2012 -0500

winex11: Be more conservative when matching keys from built-in layout tables.

---

 dlls/winex11.drv/keyboard.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/winex11.drv/keyboard.c b/dlls/winex11.drv/keyboard.c
index 82fd26a..a2237e2 100644
--- a/dlls/winex11.drv/keyboard.c
+++ b/dlls/winex11.drv/keyboard.c
@@ -1729,7 +1729,7 @@ void X11DRV_InitKeyboard( Display *display )
                          * with appropriate ShiftMask and Mode_switch, use XLookupString
                          * to get character in the local encoding.
                          */
-                        ckey[i] = keysym & 0xFF;
+                        ckey[i] = (keysym <= 0x7F) ? keysym : 0;
                     }
 		} else {
 		  ckey[i] = KEYBOARD_MapDeadKeysym(keysym);




More information about the wine-cvs mailing list