mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 19:05:59 +01:00
config: fix uninitialized values with mode parsing
This commit is contained in:
parent
e45e606fbd
commit
82c67e61a9
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue