fixed print output mode

This commit is contained in:
Maarten van Gompel 2021-03-08 22:36:30 +01:00 committed by Hiltjo Posthuma
parent 9b5ebd8447
commit 869a4328c9
1 changed files with 4 additions and 2 deletions

View File

@ -501,11 +501,13 @@ printkey(Key *k, KeySym mod) {
char buffer[32];
KeySym ignore;
Status return_status;
Xutf8LookupString(xic, &event, buffer, 32, &ignore, &return_status);
int l = Xutf8LookupString(xic, &event, buffer, 32, &ignore, &return_status);
buffer[l] = '\0';
if (debug) printdbg("Print buffer: [%s] (length=%d)\n", &buffer, l);
printf("%s", buffer);
XDestroyIC(xic);
XCloseIM(xim);
printf("%s", buffer);
}
void