diff options
| author | Sixels <sixels@protonmail.com> | 2022-04-19 13:50:18 -0300 |
|---|---|---|
| committer | Sixels <sixels@protonmail.com> | 2022-04-19 13:52:31 -0300 |
| commit | 613093877a34dca5a9927811f05432c01f74b01e (patch) | |
| tree | 916ecd3fdff1a376f0445d8f69566dae42ca8ce4 /src/managers/InputManager.cpp | |
| parent | 03624e206009e5c1c14a2ad48e37865ec7741e00 (diff) | |
Set dwt for touchpad if available
Diffstat (limited to 'src/managers/InputManager.cpp')
| -rw-r--r-- | src/managers/InputManager.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/managers/InputManager.cpp b/src/managers/InputManager.cpp index 0800ac95..43b4ec12 100644 --- a/src/managers/InputManager.cpp +++ b/src/managers/InputManager.cpp @@ -271,6 +271,11 @@ void CInputManager::newMouse(wlr_input_device* mouse) { if (libinput_device_config_scroll_has_natural_scroll(LIBINPUTDEV)) libinput_device_config_scroll_set_natural_scroll_enabled(LIBINPUTDEV, 0 /* Natural */); + + if (libinput_device_config_dwt_is_available(LIBINPUTDEV)) { + const auto DWT = static_cast<enum libinput_config_dwt_state>(g_pConfigManager->getInt("input:touchpad:disable_while_typing") != 0); + libinput_device_config_dwt_set_enabled(LIBINPUTDEV, DWT); + } } wlr_cursor_attach_input_device(g_pCompositor->m_sWLRCursor, mouse); |
