uterm_input: remove supporting code for updating LED state
authorRan Benita <ran234@gmail.com>
Fri, 26 Oct 2012 15:08:01 +0000 (17:08 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 27 Oct 2012 16:08:05 +0000 (18:08 +0200)
commit874bbbe17a7f93c2d66b7ae48cb2ba2658bb8d05
tree83b13fa54b229668fc6561825714f9f5e9a315bd
parent2843c80c5bcb38163088440470ba88ff6a76fb54
uterm_input: remove supporting code for updating LED state

Before we transitioned to xkbcommon, we had some code that, upon
returning from a VT-switch, looked at the evdev led state and updated
the keyboard modifier state accordingly. So if we returned and NumLock
was on, we adjusted ourselves to that. That was pretty cute.

xkbcommon however doesn't support updating the state by LEDs like that.
Normally, the state of the LEDs is derived from the modifiers; going the
other way is tricky, error-prone and not used much. What we should be
doing is updating the LEDs according to *our* state.

This commit does the part of removing the unused dead code.

Signed-off-by: Ran Benita <ran234@gmail.com>
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/uterm_input.c
src/uterm_input.h
src/uterm_input_uxkb.c