forked from pyrite-dev/milsko
several wayland fixes, new util function MwIsUTF8 so that both backends can consistently check if something is a valid utf8
This commit is contained in:
parent
87c870a6c0
commit
4d694bba49
5 changed files with 182 additions and 66 deletions
|
|
@ -558,8 +558,7 @@ static void MwLLNextEventImpl(MwLL handle) {
|
|||
strcpy(str, s);
|
||||
}
|
||||
|
||||
/* HACK: this is bad, you can guess why */
|
||||
if(strlen(str) == 1) {
|
||||
if(MwIsKeyUTF8(sym)) {
|
||||
char s = str[0];
|
||||
|
||||
if(ev.xkey.state & (ShiftMask | LockMask) && !(ev.xkey.state & (ControlMask | Mod1Mask))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue