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:
NishiOwO
2025-10-16 19:27:18 +00:00
parent 1b8f877b87
commit caf2d110d1

View File

@@ -299,7 +299,7 @@ void MwLLNextEvent(MwLL handle) {
XLookupString(&ev.xkey, str, 512, &sym, NULL);
/* wtf is wrong with xlib? */
if(strlen(str) == 0) {
if(strlen(str) == 0 || (str[0] < 0x20)) {
char* s = XKeysymToString(sym);
strcpy(str, s);