mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 22:25:58 +01:00
Invalidate layout on dynamic request to config
This commit is contained in:
parent
c8f0a74975
commit
5635c6385f
1 changed files with 8 additions and 1 deletions
|
@ -489,8 +489,10 @@ void CConfigManager::handleSource(const std::string& command, const std::string&
|
|||
}
|
||||
|
||||
std::string CConfigManager::parseKeyword(const std::string& COMMAND, const std::string& VALUE, bool dynamic) {
|
||||
if (dynamic)
|
||||
if (dynamic) {
|
||||
parseError = "";
|
||||
currentCategory = "";
|
||||
}
|
||||
|
||||
if (COMMAND == "exec") {
|
||||
if (isFirstLaunch) {
|
||||
|
@ -517,6 +519,11 @@ std::string CConfigManager::parseKeyword(const std::string& COMMAND, const std::
|
|||
if (dynamic) {
|
||||
std::string retval = parseError;
|
||||
parseError = "";
|
||||
|
||||
// invalidate layouts jic
|
||||
for (auto& m : g_pCompositor->m_lMonitors)
|
||||
g_pLayoutManager->getCurrentLayout()->recalculateMonitor(m.ID);
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue