From 1e06ab464ff1aa1e8d3f79b4aa702cab101edfb0 Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Wed, 25 Feb 2026 23:54:13 +0000 Subject: algo/master: fix orientation cycling (#13372) --- src/layout/algorithm/tiled/master/MasterAlgorithm.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/layout/algorithm/tiled/master/MasterAlgorithm.hpp') 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 explicitOrientation; // Previously focused non-master window when `focusmaster previous` command was issued WP focusMasterPrev; @@ -71,5 +71,6 @@ namespace Layout::Tiled { SP getNextTarget(SP, bool, bool); int getMastersNo(); bool isWindowTiled(PHLWINDOW); + eOrientation defaultOrientation(); }; }; \ No newline at end of file -- cgit v1.2.3