diff options
author | Vaxry <[email protected]> | 2024-08-24 15:24:55 +0200 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-08-24 15:24:55 +0200 |
commit | 82c67e61a96b23c7b962ab8e3ed9079f671942e1 (patch) | |
tree | 49f54e9e5b312aa3aaf478d87086e9beab15e4bd | |
parent | e45e606fbd7f7e805eb5a1c81482ea44b66e88d2 (diff) | |
download | Hyprland-82c67e61a96b23c7b962ab8e3ed9079f671942e1.tar.gz Hyprland-82c67e61a96b23c7b962ab8e3ed9079f671942e1.zip |
config: fix uninitialized values with mode parsing
-rw-r--r-- | src/config/ConfigManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 51b1e1d2..0390b9d9 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -1218,14 +1218,14 @@ std::vector<SWindowRule> CConfigManager::getMatchingRules(PHLWINDOW pWindow, boo std::optional<eFullscreenMode> internalMode, clientMode; if (ARGS[0] == "*") - internalMode = {}; + internalMode = std::nullopt; else if (isNumber(ARGS[0])) internalMode = (eFullscreenMode)std::stoi(ARGS[0]); else throw std::runtime_error("szFullscreenState internal mode not valid"); if (ARGS[1] == "*") - clientMode = {}; + clientMode = std::nullopt; else if (isNumber(ARGS[1])) clientMode = (eFullscreenMode)std::stoi(ARGS[1]); else |