aboutsummaryrefslogtreecommitdiffstats
path: root/unix/xserver/hw/vnc/InputXKB.c
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2016-12-11 12:41:26 +0100
committerPierre Ossman <ossman@cendio.se>2017-08-24 12:33:08 +0200
commitbb305ca3dbbc316c9742d36b0919226e15120add (patch)
tree4e02a61174797166a06c0987ef7919d2ed7f775c /unix/xserver/hw/vnc/InputXKB.c
parent1668cfaef2fe7effb38f311d232d4f57a8703d11 (diff)
downloadtigervnc-bb305ca3dbbc316c9742d36b0919226e15120add.tar.gz
tigervnc-bb305ca3dbbc316c9742d36b0919226e15120add.zip
Add server side lock key sync heuristic
Based on QEMU's behaviour.
Diffstat (limited to 'unix/xserver/hw/vnc/InputXKB.c')
-rw-r--r--unix/xserver/hw/vnc/InputXKB.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/unix/xserver/hw/vnc/InputXKB.c b/unix/xserver/hw/vnc/InputXKB.c
index 2a3f7afb..a9bd11d1 100644
--- a/unix/xserver/hw/vnc/InputXKB.c
+++ b/unix/xserver/hw/vnc/InputXKB.c
@@ -485,23 +485,6 @@ KeyCode vncKeysymToKeycode(KeySym keysym, unsigned state, unsigned *new_state)
return 0;
}
-int vncIsLockModifier(KeyCode keycode, unsigned state)
-{
- XkbDescPtr xkb;
- XkbAction *act;
-
- xkb = GetMaster(vncKeyboardDev, KEYBOARD_OR_FLOAT)->key->xkbInfo->desc;
-
- act = XkbKeyActionPtr(xkb, keycode, state);
- if (act == NULL)
- return 0;
-
- if (act->type != XkbSA_LockMods)
- return 0;
-
- return 1;
-}
-
int vncIsAffectedByNumLock(KeyCode keycode)
{
unsigned state;