[MPlayer-cvslog] r36060 - trunk/libvo/x11_common.c
reimar
subversion at mplayerhq.hu
Tue Mar 26 00:03:07 CET 2013
Author: reimar
Date: Tue Mar 26 00:03:07 2013
New Revision: 36060
Log:
Ignore XLookupString results in ASCII range.
This fixes special handling of the keypad.
Modified:
trunk/libvo/x11_common.c
Modified: trunk/libvo/x11_common.c
==============================================================================
--- trunk/libvo/x11_common.c Mon Mar 25 23:54:54 2013 (r36059)
+++ trunk/libvo/x11_common.c Tue Mar 26 00:03:07 2013 (r36060)
@@ -879,7 +879,7 @@ int vo_x11_check_events(Display * mydisp
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;
More information about the MPlayer-cvslog
mailing list