changeset 35966:fab37d38b77c

Ignore XLookupString results in ASCII range. This fixes special handling of the keypad.
author reimar
date Mon, 25 Mar 2013 23:03:07 +0000
parents 7038dec225b1
children 76d4f38ffdf9
files libvo/x11_common.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/x11_common.c	Mon Mar 25 22:54:54 2013 +0000
+++ b/libvo/x11_common.c	Mon Mar 25 23:03:07 2013 +0000
@@ -879,7 +879,7 @@
                     key =
                         ((keySym & 0xff00) !=
                          0 ? ((keySym & 0x00ff) + 256) : (keySym));
-                    utf8 = to_utf8(buf);
+                    utf8 = buf[0] > 0xc0 ? to_utf8(buf) : 0;
                     if (utf8) key = 0;
                     if (key == wsLeftCtrl || key == wsRightCtrl) {
                         ctrl_state = Event.type == KeyPress;