mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 22:25:58 +01:00
parent
043b859ea2
commit
efcbcd7297
1 changed files with 3 additions and 3 deletions
|
@ -1488,9 +1488,9 @@ void CInputManager::newTouchDevice(SP<Aquamarine::ITouch> pDevice) {
|
|||
}
|
||||
|
||||
void CInputManager::setTouchDeviceConfigs(SP<ITouch> dev) {
|
||||
auto setConfig = [&](SP<ITouch> PTOUCHDEV) -> void {
|
||||
if (dev->aq() && dev->aq()->getLibinputHandle()) {
|
||||
const auto LIBINPUTDEV = dev->aq()->getLibinputHandle();
|
||||
auto setConfig = [](SP<ITouch> PTOUCHDEV) -> void {
|
||||
if (PTOUCHDEV->aq() && PTOUCHDEV->aq()->getLibinputHandle()) {
|
||||
const auto LIBINPUTDEV = PTOUCHDEV->aq()->getLibinputHandle();
|
||||
|
||||
const auto ENABLED = g_pConfigManager->getDeviceInt(PTOUCHDEV->hlName, "enabled", "input:touchdevice:enabled");
|
||||
const auto mode = ENABLED ? LIBINPUT_CONFIG_SEND_EVENTS_ENABLED : LIBINPUT_CONFIG_SEND_EVENTS_DISABLED;
|
||||
|
|
Loading…
Reference in a new issue