mirror of git://git.suckless.org/svkbd
fixed print output mode
This commit is contained in:
parent
9b5ebd8447
commit
869a4328c9
6
svkbd.c
6
svkbd.c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue