mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-06 23:21:57 -07:00
Invalidate layout on dynamic request to config
This commit is contained in:
@@ -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) {
|
std::string CConfigManager::parseKeyword(const std::string& COMMAND, const std::string& VALUE, bool dynamic) {
|
||||||
if (dynamic)
|
if (dynamic) {
|
||||||
parseError = "";
|
parseError = "";
|
||||||
|
currentCategory = "";
|
||||||
|
}
|
||||||
|
|
||||||
if (COMMAND == "exec") {
|
if (COMMAND == "exec") {
|
||||||
if (isFirstLaunch) {
|
if (isFirstLaunch) {
|
||||||
@@ -517,6 +519,11 @@ std::string CConfigManager::parseKeyword(const std::string& COMMAND, const std::
|
|||||||
if (dynamic) {
|
if (dynamic) {
|
||||||
std::string retval = parseError;
|
std::string retval = parseError;
|
||||||
parseError = "";
|
parseError = "";
|
||||||
|
|
||||||
|
// invalidate layouts jic
|
||||||
|
for (auto& m : g_pCompositor->m_lMonitors)
|
||||||
|
g_pLayoutManager->getCurrentLayout()->recalculateMonitor(m.ID);
|
||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user