algo/master: fix master:orientation being a noop
This commit is contained in:
parent
5a80bc120a
commit
be893a81b4
1 changed files with 4 additions and 0 deletions
|
|
@ -870,10 +870,14 @@ void CMasterAlgorithm::runOrientationCycle(Hyprutils::String::CVarList2* vars, i
|
||||||
}
|
}
|
||||||
|
|
||||||
eOrientation CMasterAlgorithm::getDynamicOrientation() {
|
eOrientation CMasterAlgorithm::getDynamicOrientation() {
|
||||||
|
static auto PORIENT = CConfigValue<std::string>("master:orientation");
|
||||||
|
|
||||||
const auto WORKSPACERULE = g_pConfigManager->getWorkspaceRuleFor(m_parent->space()->workspace());
|
const auto WORKSPACERULE = g_pConfigManager->getWorkspaceRuleFor(m_parent->space()->workspace());
|
||||||
std::string orientationString;
|
std::string orientationString;
|
||||||
if (WORKSPACERULE.layoutopts.contains("orientation"))
|
if (WORKSPACERULE.layoutopts.contains("orientation"))
|
||||||
orientationString = WORKSPACERULE.layoutopts.at("orientation");
|
orientationString = WORKSPACERULE.layoutopts.at("orientation");
|
||||||
|
else
|
||||||
|
orientationString = *PORIENT;
|
||||||
|
|
||||||
eOrientation orientation = m_workspaceData.orientation;
|
eOrientation orientation = m_workspaceData.orientation;
|
||||||
// override if workspace rule is set
|
// override if workspace rule is set
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue