summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2013-05-23 11:41:35 +0000
committerPierre Ossman <ossman@cendio.se>2013-05-23 11:41:35 +0000
commit6f67fa9a07b0d853eb23321308f3b99fc6d8aec7 (patch)
treea8768df1edf26f81e208af3b75271b266301c12e /unix
parent7138a6c05d6140018dc4c44f71f09e4fc8ddcf86 (diff)
downloadtigervnc-6f67fa9a07b0d853eb23321308f3b99fc6d8aec7.tar.gz
tigervnc-6f67fa9a07b0d853eb23321308f3b99fc6d8aec7.zip
Not sure what I was smoking when I wrote this. You need
to provide both pointers, even if you are just interested in the upper case symbol. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5105 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'unix')
-rw-r--r--unix/xserver/hw/vnc/InputXKB.cc3
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;