GUACAMOLE-313: Remove code handling Unicode codepoints which cannot be represented by X11 keysyms.
This commit is contained in:
parent
cfd69cd122
commit
555126441e
@ -236,18 +236,11 @@ static guaclog_keydef* guaclog_get_unicode_key(int keysym) {
|
|||||||
mask = 0xC0;
|
mask = 0xC0;
|
||||||
bytes = 2;
|
bytes = 2;
|
||||||
}
|
}
|
||||||
else if (codepoint <= 0xFFFF) {
|
else {
|
||||||
|
assert(codepoint <= 0xFFFF);
|
||||||
mask = 0xE0;
|
mask = 0xE0;
|
||||||
bytes = 3;
|
bytes = 3;
|
||||||
}
|
}
|
||||||
else if (codepoint <= 0x1FFFFF) {
|
|
||||||
mask = 0xF0;
|
|
||||||
bytes = 4;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Otherwise, invalid codepoint */
|
|
||||||
else
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
/* Offset buffer by size */
|
/* Offset buffer by size */
|
||||||
char* key_name = unicode_keydef_name + bytes;
|
char* key_name = unicode_keydef_name + bytes;
|
||||||
|
Loading…
Reference in New Issue
Block a user