mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 00:28:20 +00:00
[client] wayland: correctly convert scan codes to numbers
Note that xkb scan code = linux scan code + 8.
This commit is contained in:
parent
da04a6dd54
commit
d24459b27f
@ -211,6 +211,7 @@ done:
|
||||
|
||||
static int getCharcode(uint32_t key)
|
||||
{
|
||||
key += 8; // xkb scancode is evdev scancode + 8
|
||||
xkb_keysym_t sym = xkb_state_key_get_one_sym(wlWm.xkbState, key);
|
||||
if (sym == XKB_KEY_NoSymbol)
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user