summaryrefslogtreecommitdiff
path: root/src/config/ConfigManager.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-04-10 16:19:49 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-04-10 16:19:49 +0200
commit92bfe6f13e56a0dd0cfeac82f90d55cc95eefe23 (patch)
tree4a4db0a081fcd9caa59398b4c333ace3a2d6010c /src/config/ConfigManager.cpp
parent743efafbdea4bad87ab845472f0a8b063d4e4912 (diff)
fixed some more crashes
Diffstat (limited to 'src/config/ConfigManager.cpp')
-rw-r--r--src/config/ConfigManager.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp
index ad36a15d..70267f10 100644
--- a/src/config/ConfigManager.cpp
+++ b/src/config/ConfigManager.cpp
@@ -345,8 +345,9 @@ void CConfigManager::loadConfigLoadVars() {
for (auto& m : g_pCompositor->m_lMonitors)
g_pLayoutManager->getCurrentLayout()->recalculateMonitor(m.ID);
- // Update the keyboard layout to the cfg'd one
- g_pInputManager->setKeyboardLayout();
+ // Update the keyboard layout to the cfg'd one if this is not the first launch
+ if (!isFirstLaunch)
+ g_pInputManager->setKeyboardLayout();
// Calculate the mod mask for main_mod
configValues["general:main_mod_internal"].intValue = g_pKeybindManager->stringToModMask(configValues["general:main_mod"].strValue);