mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-09 19:03:29 +00:00
fix x11 backend bug
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@380 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -299,7 +299,7 @@ void MwLLNextEvent(MwLL handle) {
|
|||||||
XLookupString(&ev.xkey, str, 512, &sym, NULL);
|
XLookupString(&ev.xkey, str, 512, &sym, NULL);
|
||||||
|
|
||||||
/* wtf is wrong with xlib? */
|
/* wtf is wrong with xlib? */
|
||||||
if(strlen(str) == 0) {
|
if(strlen(str) == 0 || (str[0] < 0x20)) {
|
||||||
char* s = XKeysymToString(sym);
|
char* s = XKeysymToString(sym);
|
||||||
|
|
||||||
strcpy(str, s);
|
strcpy(str, s);
|
||||||
|
|||||||
Reference in New Issue
Block a user