diff options
| author | Vaxry <vaxry@vaxry.net> | 2026-02-24 11:36:51 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2026-02-24 11:36:51 +0000 |
| commit | be893a81b4533d1dc22e91f7d603dbb536ed79f8 (patch) | |
| tree | 61b5e9c40c02c4dd71fd0a0c66184e3af3d21ed1 /src/layout/algorithm/tiled | |
| parent | 5a80bc120ab7c260e3084c3284a0411ca513c62c (diff) | |
algo/master: fix master:orientation being a noop
Diffstat (limited to 'src/layout/algorithm/tiled')
| -rw-r--r-- | src/layout/algorithm/tiled/master/MasterAlgorithm.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/layout/algorithm/tiled/master/MasterAlgorithm.cpp b/src/layout/algorithm/tiled/master/MasterAlgorithm.cpp index 7a6c6768..a0329b22 100644 --- a/src/layout/algorithm/tiled/master/MasterAlgorithm.cpp +++ b/src/layout/algorithm/tiled/master/MasterAlgorithm.cpp @@ -870,10 +870,14 @@ void CMasterAlgorithm::runOrientationCycle(Hyprutils::String::CVarList2* vars, i } eOrientation CMasterAlgorithm::getDynamicOrientation() { + static auto PORIENT = CConfigValue<std::string>("master:orientation"); + const auto WORKSPACERULE = g_pConfigManager->getWorkspaceRuleFor(m_parent->space()->workspace()); std::string orientationString; if (WORKSPACERULE.layoutopts.contains("orientation")) orientationString = WORKSPACERULE.layoutopts.at("orientation"); + else + orientationString = *PORIENT; eOrientation orientation = m_workspaceData.orientation; // override if workspace rule is set |
