mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-03 13:41:59 -07:00
fix layout refresh on config and keybinds doubling
This commit is contained in:
@@ -217,6 +217,7 @@ void CConfigManager::loadConfigLoadVars() {
|
||||
currentCategory = ""; // reset the category
|
||||
|
||||
m_dMonitorRules.clear();
|
||||
g_pKeybindManager->clearKeybinds();
|
||||
|
||||
const char* const ENVHOME = getenv("HOME");
|
||||
const std::string CONFIGPATH = ENVHOME + (ISDEBUG ? (std::string) "/.config/hypr/hyprlandd.conf" : (std::string) "/.config/hypr/hyprland.conf");
|
||||
@@ -255,6 +256,9 @@ void CConfigManager::loadConfigLoadVars() {
|
||||
|
||||
ifs.close();
|
||||
}
|
||||
|
||||
for (auto& m : g_pCompositor->m_lMonitors)
|
||||
g_pLayoutManager->getCurrentLayout()->recalculateMonitor(m.ID);
|
||||
}
|
||||
|
||||
void CConfigManager::tick() {
|
||||
|
Reference in New Issue
Block a user