diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-07-21 16:45:40 +0200 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-07-21 16:45:46 +0200 |
| commit | efcbcd7297e2c9b06e3cd5d3296d47504f502cee (patch) | |
| tree | 932391a1cb77f6084b10a6fd2b93ac330f82786c /src/managers/input/InputManager.cpp | |
| parent | 043b859ea2ec8173d8a0f1f90012fcca82275d22 (diff) | |
input: fix invalid usage of dev in setTouchDeviceConfigs
ref #6943
Diffstat (limited to 'src/managers/input/InputManager.cpp')
| -rw-r--r-- | src/managers/input/InputManager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index 255023b9..492d2805 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -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; |
