xkb: push locked modifier state down to attached slave devices
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 26 Feb 2014 06:20:08 +0000 (16:20 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 11 Mar 2014 07:43:34 +0000 (17:43 +1000)
commit45fb3a934dc0db51584aba37c2f9d73deff9191d
tree4f79790f2247c7ec67dedb864322e40c497416c6
parent656841798c99bcd79da47c03ec666a48b855541f
xkb: push locked modifier state down to attached slave devices

Whenever the master changes, push the locked modifier state to the attached
slave devices, then update the indicators. This way, when NumLock or CapsLock
are hit on any device, the LED will light up on all devices. Likewise, a new
keyboard attached to a master device will light up with the correct
indicators.

The indicators are handled per-keyboard, depending on the layout, i.e. if one
keyboard has grp_led:num set, the NumLock LED won't light up on that keyboard.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
dix/devices.c
include/xkbsrv.h
xkb/xkbActions.c