diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2026-02-25 23:54:13 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-25 23:54:13 +0000 |
| commit | 1e06ab464ff1aa1e8d3f79b4aa702cab101edfb0 (patch) | |
| tree | 86a86845cb7e953f90ac4bc68bcee88e1ab3e63c /src/layout/algorithm/tiled/master/MasterAlgorithm.hpp | |
| parent | 623185170b89c12205e9e093576b9c71118d3f59 (diff) | |
algo/master: fix orientation cycling (#13372)
Diffstat (limited to 'src/layout/algorithm/tiled/master/MasterAlgorithm.hpp')
| -rw-r--r-- | src/layout/algorithm/tiled/master/MasterAlgorithm.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/layout/algorithm/tiled/master/MasterAlgorithm.hpp b/src/layout/algorithm/tiled/master/MasterAlgorithm.hpp index 4524587f..5cfa6b36 100644 --- a/src/layout/algorithm/tiled/master/MasterAlgorithm.hpp +++ b/src/layout/algorithm/tiled/master/MasterAlgorithm.hpp @@ -19,8 +19,8 @@ namespace Layout::Tiled { }; struct SMasterWorkspaceData { - WORKSPACEID workspaceID = WORKSPACE_INVALID; - eOrientation orientation = ORIENTATION_LEFT; + WORKSPACEID workspaceID = WORKSPACE_INVALID; + std::optional<eOrientation> explicitOrientation; // Previously focused non-master window when `focusmaster previous` command was issued WP<ITarget> focusMasterPrev; @@ -71,5 +71,6 @@ namespace Layout::Tiled { SP<ITarget> getNextTarget(SP<ITarget>, bool, bool); int getMastersNo(); bool isWindowTiled(PHLWINDOW); + eOrientation defaultOrientation(); }; };
\ No newline at end of file |
