mirror of
https://github.com/hyprwm/Hyprland
synced 2025-12-20 16:50:04 +01:00
config: Restore auto-center-* for monitors (#10660)
This commit is contained in:
parent
d6fbd89336
commit
c35c2fea40
1 changed files with 11 additions and 1 deletions
|
|
@ -2103,10 +2103,20 @@ bool CMonitorRuleParser::parsePosition(const std::string& value, bool isFirst) {
|
|||
m_rule.autoDir = eAutoDirs::DIR_AUTO_UP;
|
||||
else if (value == "auto-down")
|
||||
m_rule.autoDir = eAutoDirs::DIR_AUTO_DOWN;
|
||||
else if (value == "auto-center-right")
|
||||
m_rule.autoDir = eAutoDirs::DIR_AUTO_CENTER_RIGHT;
|
||||
else if (value == "auto-center-left")
|
||||
m_rule.autoDir = eAutoDirs::DIR_AUTO_CENTER_LEFT;
|
||||
else if (value == "auto-center-up")
|
||||
m_rule.autoDir = eAutoDirs::DIR_AUTO_CENTER_UP;
|
||||
else if (value == "auto-center-down")
|
||||
m_rule.autoDir = eAutoDirs::DIR_AUTO_CENTER_DOWN;
|
||||
else {
|
||||
Debug::log(WARN,
|
||||
"Invalid auto direction. Valid options are 'auto',"
|
||||
"'auto-up', 'auto-down', 'auto-left', and 'auto-right'.");
|
||||
"'auto-up', 'auto-down', 'auto-left', 'auto-right',"
|
||||
"'auto-center-up', 'auto-center-down',"
|
||||
"'auto-center-left', and 'auto-center-right'.");
|
||||
m_error += "invalid auto direction ";
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue