summaryrefslogtreecommitdiff
path: root/src/config/ConfigManager.cpp
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2023-01-17 11:47:39 +0100
committervaxerski <vaxry@vaxry.net>2023-01-17 11:47:39 +0100
commit5c83976977462696355c2099c48de72c4c11be59 (patch)
treeae123b460f33acefb268d22e0500858e92d151e0 /src/config/ConfigManager.cpp
parent2ec7e241cd12d270757267beccd3e490ad6e3360 (diff)
added misc:hide_cursor_on_touch
Diffstat (limited to 'src/config/ConfigManager.cpp')
-rw-r--r--src/config/ConfigManager.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp
index 8e1eb3ad..b9301531 100644
--- a/src/config/ConfigManager.cpp
+++ b/src/config/ConfigManager.cpp
@@ -61,6 +61,7 @@ void CConfigManager::setDefaultVars() {
configValues["misc:swallow_regex"].strValue = STRVAL_EMPTY;
configValues["misc:focus_on_activate"].intValue = 0;
configValues["misc:no_direct_scanout"].intValue = 0;
+ configValues["misc:hide_cursor_on_touch"].intValue = 1;
configValues["debug:int"].intValue = 0;
configValues["debug:log_damage"].intValue = 0;
@@ -1342,12 +1343,8 @@ SConfigValue CConfigManager::getConfigValueSafeDevice(const std::string& dev, co
if (foundIt == std::string::npos)
continue;
- if (cv.first == "input:" + val
- || cv.first == "input:touchpad:" + cv.first
- || cv.first == "input:touchdevice:" + val
- || cv.first == "input:tablet:" + cv.first
- || cv.first == "input:tablet:" + val
- ) {
+ if (cv.first == "input:" + val || cv.first == "input:touchpad:" + cv.first || cv.first == "input:touchdevice:" + val || cv.first == "input:tablet:" + cv.first ||
+ cv.first == "input:tablet:" + val) {
copy = cv.second;
}
}