mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 11:45:58 +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;
|
std::optional<eFullscreenMode> internalMode, clientMode;
|
||||||
|
|
||||||
if (ARGS[0] == "*")
|
if (ARGS[0] == "*")
|
||||||
internalMode = {};
|
internalMode = std::nullopt;
|
||||||
else if (isNumber(ARGS[0]))
|
else if (isNumber(ARGS[0]))
|
||||||
internalMode = (eFullscreenMode)std::stoi(ARGS[0]);
|
internalMode = (eFullscreenMode)std::stoi(ARGS[0]);
|
||||||
else
|
else
|
||||||
throw std::runtime_error("szFullscreenState internal mode not valid");
|
throw std::runtime_error("szFullscreenState internal mode not valid");
|
||||||
|
|
||||||
if (ARGS[1] == "*")
|
if (ARGS[1] == "*")
|
||||||
clientMode = {};
|
clientMode = std::nullopt;
|
||||||
else if (isNumber(ARGS[1]))
|
else if (isNumber(ARGS[1]))
|
||||||
clientMode = (eFullscreenMode)std::stoi(ARGS[1]);
|
clientMode = (eFullscreenMode)std::stoi(ARGS[1]);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue