diff options
| author | Flafy <flafyarazi@gmail.com> | 2022-12-04 19:32:27 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-04 17:32:27 +0000 |
| commit | 686d6fc6d1ce307e78b050c68aa71ea18449a980 (patch) | |
| tree | cc3f685fbae425e64a512239ea81a631eb429cbf /src | |
| parent | 9e8df888ebf27d17acfb2e796195e9688529c2d9 (diff) | |
Fix wrong layout recalculate if statement (#1167)
* fix: wrong layout recalculate if statement
* change from find to contains
Diffstat (limited to 'src')
| -rw-r--r-- | src/config/ConfigManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index fdb227c3..24d23b90 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -1036,7 +1036,7 @@ std::string CConfigManager::parseKeyword(const std::string& COMMAND, const std:: // invalidate layouts if they changed if (needsLayoutRecalc) { - if (needsLayoutRecalc == 1 || VALUE.find("gaps_") || VALUE.find("dwindle:") == 0 || VALUE.find("master:") == 0) { + if (needsLayoutRecalc == 1 || COMMAND.contains("gaps_") || COMMAND.find("dwindle:") == 0 || COMMAND.find("master:") == 0) { for (auto& m : g_pCompositor->m_vMonitors) g_pLayoutManager->getCurrentLayout()->recalculateMonitor(m->ID); } |
