diff options
-rw-r--r-- | unix/xserver/hw/vnc/InputXKB.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unix/xserver/hw/vnc/InputXKB.cc b/unix/xserver/hw/vnc/InputXKB.cc index 6fca3624..f3211bf7 100644 --- a/unix/xserver/hw/vnc/InputXKB.cc +++ b/unix/xserver/hw/vnc/InputXKB.cc @@ -408,13 +408,14 @@ KeyCode InputDevice::keysymToKeycode(KeySym keysym, unsigned state, xkb = GetMaster(keyboardDev, KEYBOARD_OR_FLOAT)->key->xkbInfo->desc; for (key = xkb->min_key_code; key <= xkb->max_key_code; key++) { unsigned int state_out; + KeySym dummy; XkbTranslateKeyCode(xkb, key, state, &state_out, &ks); if (ks == NoSymbol) continue; if (state_out & state & LockMask) - XkbConvertCase(ks, NULL, &ks); + XkbConvertCase(ks, &dummy, &ks); if (ks == keysym) return key; |