mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-30 03:13:48 -07:00
input: fix modifier and leds (#6062)
This commit is contained in:
@@ -131,8 +131,17 @@ void IKeyboard::updateLEDs() {
|
||||
leds |= (1 << i);
|
||||
}
|
||||
|
||||
updateLEDs(leds);
|
||||
}
|
||||
|
||||
void IKeyboard::updateLEDs(uint32_t leds) {
|
||||
auto keyboard = wlr();
|
||||
|
||||
if (!keyboard || keyboard->xkb_state == nullptr)
|
||||
return;
|
||||
|
||||
if (isVirtual() && g_pInputManager->shouldIgnoreVirtualKeyboard(self.lock()))
|
||||
return;
|
||||
|
||||
wlr_keyboard_led_update(wlr(), leds);
|
||||
wlr_keyboard_led_update(keyboard, leds);
|
||||
}
|
||||
|
Reference in New Issue
Block a user