diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-12-03 15:56:07 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-12-03 16:22:02 +0000 |
| commit | 6aa26582f63c13e32dd0191015550a2d1eade7e6 (patch) | |
| tree | 7733216f18318ffb840c5d681df6b2a9cd80626e /src/config/ConfigManager.cpp | |
| parent | 056a45d035781a74ae80d5a5f0247f3338dca05d (diff) | |
added hyprctl switchxkblayout
Diffstat (limited to 'src/config/ConfigManager.cpp')
| -rw-r--r-- | src/config/ConfigManager.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 66c22318..fdb227c3 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -1333,13 +1333,10 @@ SConfigValue CConfigManager::getConfigValueSafe(const std::string& val) { SConfigValue CConfigManager::getConfigValueSafeDevice(const std::string& dev, const std::string& val) { std::lock_guard<std::mutex> lg(configmtx); - auto devcopy = dev; - std::replace(devcopy.begin(), devcopy.end(), ' ', '-'); - - const auto it = deviceConfigs.find(devcopy); + const auto it = deviceConfigs.find(dev); if (it == deviceConfigs.end()) { - Debug::log(ERR, "getConfigValueSafeDevice: No device config for %s found???", devcopy.c_str()); + Debug::log(ERR, "getConfigValueSafeDevice: No device config for %s found???", dev.c_str()); return SConfigValue(); } |
