backend/libinput: Remove redundant LED reset during keyboard initialization

Not all users want to initially turn off all keyboard LED indicators on the device.
For example, some designs hope that the Num Lock light of the machine will be on
after restart. Then libinput_device_led_update is redundant logic.
This commit is contained in:
YaoBing Xiao 2025-03-12 21:50:17 +08:00
parent 86976870bd
commit 1aeaa24e90

View file

@ -26,8 +26,6 @@ void init_device_keyboard(struct wlr_libinput_input_device *dev) {
const char *name = get_libinput_device_name(dev->handle);
struct wlr_keyboard *wlr_kb = &dev->keyboard;
wlr_keyboard_init(wlr_kb, &libinput_keyboard_impl, name);
libinput_device_led_update(dev->handle, 0);
}
void handle_keyboard_key(struct libinput_event *event,