From d599513d4a72d66ac62ffdedc41d6653fa81b39e Mon Sep 17 00:00:00 2001 From: ItsOhen Date: Sat, 11 Oct 2025 02:40:18 +0200 Subject: config: add automatic closing to submaps (#11760) * Allow submaps to auto reset to parent. * Really should be a stack instead. If hyprlang would allow for { } i would be so happy. * Fixed: Somewhat better way to do it.. Lets you define what submap you want to go to instead. * squash! Fixed: Somewhat better way to do it.. * God i hate cf.. * Force clang-format on the whole thing.. * Removed {}. * Added tests Tests and reset fix. --- src/config/ConfigManager.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/config/ConfigManager.hpp') diff --git a/src/config/ConfigManager.hpp b/src/config/ConfigManager.hpp index cff146f3..7f32be41 100644 --- a/src/config/ConfigManager.hpp +++ b/src/config/ConfigManager.hpp @@ -22,6 +22,7 @@ #include "../helpers/memory/Memory.hpp" #include "../desktop/WindowRule.hpp" #include "../managers/XWaylandManager.hpp" +#include "../managers/KeybindManager.hpp" #include @@ -307,7 +308,7 @@ class CConfigManager { Hyprutils::Animation::CAnimationConfigTree m_animationTree; - std::string m_currentSubmap = ""; // For storing the current keybind submap + SSubmap m_currentSubmap; std::vector m_execRequestedRules; // rules requested with exec, e.g. [workspace 2] kitty -- cgit v1.2.3