number entry seems to work

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@254 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-10 13:49:35 +00:00
parent ca62ddf733
commit 2ba648ef74
4 changed files with 103 additions and 12 deletions

View File

@@ -209,6 +209,13 @@ void MwLLNextEvent(MwLL handle) {
XLookupString(&ev.xkey, str, 512, &sym, NULL);
/* wtf is wrong with xlib? */
if(strlen(str) == 0) {
char* s = XKeysymToString(sym);
strcpy(str, s);
}
/* HACK: this is bad, you can guess why */
if(strlen(str) == 1) {
char s = str[0];