aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2023-11-29 03:39:45 +0000
committerVaxry <[email protected]>2023-11-29 03:39:45 +0000
commit3caaa483d4bf8f18f62f8a8f03a0922ea8a4cb7e (patch)
treeb269c7e512b835ecb89f9f7c08dde1a0aff7e692
parente2f18f8c7f95e4094acb94c5a06dc6d75d7fc9c1 (diff)
downloadHyprland-3caaa483d4bf8f18f62f8a8f03a0922ea8a4cb7e.tar.gz
Hyprland-3caaa483d4bf8f18f62f8a8f03a0922ea8a4cb7e.zip
configmgr: fix parsing of touchdevice groups
fixes #3992
-rw-r--r--src/config/ConfigManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp
index cf5f5972..07c1f51f 100644
--- a/src/config/ConfigManager.cpp
+++ b/src/config/ConfigManager.cpp
@@ -1515,7 +1515,7 @@ void CConfigManager::parseLine(std::string& line) {
const auto LASTSEP = currentCategory.find_last_of(':');
- if (LASTSEP == std::string::npos || currentCategory.contains("device"))
+ if (LASTSEP == std::string::npos || currentCategory.starts_with("device"))
currentCategory = "";
else
currentCategory = currentCategory.substr(0, LASTSEP);