algo/master: fix orientation cycling (#13372)

This commit is contained in:
Vaxry 2026-02-25 23:54:13 +00:00 committed by GitHub
parent 623185170b
commit 1e06ab464f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 88 additions and 35 deletions

View file

@ -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();
};
};