diff options
Diffstat (limited to 'unix/xserver')
-rw-r--r-- | unix/xserver/hw/vnc/Input.c | 6 | ||||
-rw-r--r-- | unix/xserver/hw/vnc/Input.h | 2 | ||||
-rw-r--r-- | unix/xserver/hw/vnc/InputXKB.c | 17 |
3 files changed, 0 insertions, 25 deletions
diff --git a/unix/xserver/hw/vnc/Input.c b/unix/xserver/hw/vnc/Input.c index 33e8604b..1d7183b9 100644 --- a/unix/xserver/hw/vnc/Input.c +++ b/unix/xserver/hw/vnc/Input.c @@ -437,12 +437,6 @@ void vncKeyboardEvent(KeySym keysym, int down) } } - /* We don't have lock synchronisation... */ - if (vncIsLockModifier(keycode, new_state)) { - LOG_DEBUG("Ignoring lock key (e.g. caps lock)"); - return; - } - /* No matches. Will have to add a new entry... */ if (keycode == 0) { keycode = vncAddKeysym(keysym, state); diff --git a/unix/xserver/hw/vnc/Input.h b/unix/xserver/hw/vnc/Input.h index 11e88710..67b9c8db 100644 --- a/unix/xserver/hw/vnc/Input.h +++ b/unix/xserver/hw/vnc/Input.h @@ -53,8 +53,6 @@ size_t vncReleaseLevelThree(KeyCode *keys, size_t maxKeys); KeyCode vncKeysymToKeycode(KeySym keysym, unsigned state, unsigned *new_state); -int vncIsLockModifier(KeyCode keycode, unsigned state); - int vncIsAffectedByNumLock(KeyCode keycode); KeyCode vncAddKeysym(KeySym keysym, unsigned state); 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; |