compositor: add a way to change the keyboard locks
authorGiulio Camuffo <giuliocamuffo@gmail.com>
Thu, 28 Aug 2014 16:44:09 +0000 (19:44 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 3 Sep 2014 12:31:04 +0000 (15:31 +0300)
commit6ef444d0947459cda35e076fa3514635ec680df6
tree645beb673a752b19fbabc710f6c443f4f3aff29b
parent2e62e4ad710d86fb5410e81541fda2c98f97a190
compositor: add a way to change the keyboard locks

This adds a function weston_keyboard_set_locks() which can be used to
change the state of the num lock and the caps locks, changing the leds too.
Only the evdev and libinput backends supports this, since it doesn't make
sense for embedded sessions.

Tested-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
src/compositor.h
src/input.c