diff options
| author | vaxerski <vaxry@vaxry.net> | 2022-10-14 12:23:11 +0100 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2022-10-14 12:23:11 +0100 |
| commit | df9409b8a2bef8936b3e3aa86c42cc4fc084dc2b (patch) | |
| tree | 62006ec10d8b753949f0b9c19115454383410a06 | |
| parent | 6287f2b71b5b3bd97688db2563a9255c2b98533e (diff) | |
rename transform in DC to touch_transform
| -rw-r--r-- | src/config/ConfigManager.cpp | 2 | ||||
| -rw-r--r-- | src/managers/input/InputManager.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index e38ac19c..10840a65 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -188,7 +188,7 @@ void CConfigManager::setDeviceDefaultVars(const std::string& dev) { cfgValues["drag_lock"].intValue = 0; cfgValues["left_handed"].intValue = 0; cfgValues["scroll_method"].strValue = STRVAL_EMPTY; - cfgValues["transform"].intValue = 0; + cfgValues["touch_transform"].intValue = 0; } void CConfigManager::setDefaultAnimationVars() { diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index e78ddda2..dc85735b 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -1090,7 +1090,7 @@ void CInputManager::setTouchDeviceConfigs() { if (wlr_input_device_is_libinput(m.pWlrDevice)) { const auto LIBINPUTDEV = (libinput_device*)wlr_libinput_get_device_handle(m.pWlrDevice); - const int ROTATION = std::clamp(HASCONFIG ? g_pConfigManager->getDeviceInt(devname, "transform") : g_pConfigManager->getInt("input:touchdevice:transform"), 0, 7); + const int ROTATION = std::clamp(HASCONFIG ? g_pConfigManager->getDeviceInt(devname, "touch_transform") : g_pConfigManager->getInt("input:touchdevice:transform"), 0, 7); libinput_device_config_calibration_set_matrix(LIBINPUTDEV, MATRICES[ROTATION]); } } |
