mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-09-11 13:25:42 +03:00
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
Block a user