mirror of https://github.com/hyprwm/Hyprland
parent
25964e5a2b
commit
c951c4f8a1
|
@ -118,7 +118,7 @@ std::string IKeyboard::getActiveLayout() {
|
|||
void IKeyboard::updateLEDs() {
|
||||
auto keyboard = wlr();
|
||||
|
||||
if (keyboard->xkb_state == nullptr)
|
||||
if (!keyboard || keyboard->xkb_state == nullptr)
|
||||
return;
|
||||
|
||||
uint32_t leds = 0;
|
||||
|
|
Loading…
Reference in New Issue