From 1aeaa24e908610bbd7ab9f9117725f0018c85ffe Mon Sep 17 00:00:00 2001 From: YaoBing Xiao Date: Wed, 12 Mar 2025 21:50:17 +0800 Subject: [PATCH] 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. --- backend/libinput/keyboard.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/backend/libinput/keyboard.c b/backend/libinput/keyboard.c index 7518453e6..d007d12c1 100644 --- a/backend/libinput/keyboard.c +++ b/backend/libinput/keyboard.c @@ -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,