Skip to content

Commit

Permalink
session: support setting the leds
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Jul 9, 2024
1 parent bd6da3b commit dbace2b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/backend/Session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,9 @@ static ITabletTool::eTabletToolType aqTypeFromLibinput(libinput_tablet_tool_type
return ITabletTool::AQ_TABLET_TOOL_TYPE_INVALID;
}

Aquamarine::CLibinputKeyboard::CLibinputKeyboard(SP<CLibinputDevice> dev) : device(dev) {}
Aquamarine::CLibinputKeyboard::CLibinputKeyboard(SP<CLibinputDevice> dev) : device(dev) {
libinput_device_led_update(device->device, (libinput_led)0);
}

libinput_device* Aquamarine::CLibinputKeyboard::getLibinputHandle() {
if (!device)
Expand All @@ -892,7 +894,7 @@ const std::string& Aquamarine::CLibinputKeyboard::getName() {
}

void Aquamarine::CLibinputKeyboard::updateLEDs(uint32_t leds) {
; // FIXME:
libinput_device_led_update(device->device, (libinput_led)leds);
}

Aquamarine::CLibinputMouse::CLibinputMouse(Hyprutils::Memory::CSharedPointer<CLibinputDevice> dev) : device(dev) {
Expand Down

0 comments on commit dbace2b

Please sign in to comment.