session: support setting the leds

This commit is contained in:
Vaxry 2024-07-09 10:39:30 +02:00
parent bd6da3bec6
commit dbace2b794

View file

@ -877,7 +877,9 @@ static ITabletTool::eTabletToolType aqTypeFromLibinput(libinput_tablet_tool_type
return ITabletTool::AQ_TABLET_TOOL_TYPE_INVALID; 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() { libinput_device* Aquamarine::CLibinputKeyboard::getLibinputHandle() {
if (!device) if (!device)
@ -892,7 +894,7 @@ const std::string& Aquamarine::CLibinputKeyboard::getName() {
} }
void Aquamarine::CLibinputKeyboard::updateLEDs(uint32_t leds) { 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) { Aquamarine::CLibinputMouse::CLibinputMouse(Hyprutils::Memory::CSharedPointer<CLibinputDevice> dev) : device(dev) {