mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-28 01:41:07 -05:00
Add support for XKB_LED_NAME_COMPOSE and XKB_LED_NAME_KANA USB HID LEDs
Requires xkbcommon 1.8.0
This commit is contained in:
parent
c2327248f8
commit
62c86fb975
3 changed files with 7 additions and 3 deletions
|
|
@ -235,6 +235,8 @@ bool wlr_keyboard_set_keymap(struct wlr_keyboard *kb, struct xkb_keymap *keymap)
|
|||
XKB_LED_NAME_NUM,
|
||||
XKB_LED_NAME_CAPS,
|
||||
XKB_LED_NAME_SCROLL,
|
||||
XKB_LED_NAME_COMPOSE,
|
||||
XKB_LED_NAME_KANA,
|
||||
};
|
||||
for (size_t i = 0; i < WLR_LED_COUNT; ++i) {
|
||||
kb->led_indexes[i] = xkb_map_led_get_index(kb->keymap, led_names[i]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue