|
|
@ -13,7 +13,8 @@ struct wlr_libinput_keyboard {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
static void keyboard_set_leds(struct wlr_keyboard *wlr_kb, uint32_t leds) {
|
|
|
|
static void keyboard_set_leds(struct wlr_keyboard *wlr_kb, uint32_t leds) {
|
|
|
|
struct wlr_libinput_keyboard *wlr_libinput_kb = (struct wlr_libinput_keyboard *)wlr_kb;
|
|
|
|
struct wlr_libinput_keyboard *wlr_libinput_kb =
|
|
|
|
|
|
|
|
(struct wlr_libinput_keyboard *)wlr_kb;
|
|
|
|
libinput_device_led_update(wlr_libinput_kb->libinput_dev, leds);
|
|
|
|
libinput_device_led_update(wlr_libinput_kb->libinput_dev, leds);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -21,6 +22,7 @@ static void keyboard_destroy(struct wlr_keyboard *wlr_kb) {
|
|
|
|
struct wlr_libinput_keyboard *wlr_libinput_kb =
|
|
|
|
struct wlr_libinput_keyboard *wlr_libinput_kb =
|
|
|
|
(struct wlr_libinput_keyboard *)wlr_kb;
|
|
|
|
(struct wlr_libinput_keyboard *)wlr_kb;
|
|
|
|
libinput_device_unref(wlr_libinput_kb->libinput_dev);
|
|
|
|
libinput_device_unref(wlr_libinput_kb->libinput_dev);
|
|
|
|
|
|
|
|
free(wlr_libinput_kb);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
struct wlr_keyboard_impl impl = {
|
|
|
|
struct wlr_keyboard_impl impl = {
|
|
|
|