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.
6ef444d compositor: add a way to change the keyboard locks
src/compositor.h | 12 ++++++++++++
src/input.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 64 insertions(+)
Upstream: cgit.freedesktop.org