masterlayout: add previous mode for focusmaster command (#11361)

This commit is contained in:
Maaz Ahmed 2025-08-16 19:12:23 +05:30 committed by GitHub
parent 7580a9aaaa
commit 1cbb62ed6a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 95 additions and 7 deletions

View file

@ -42,6 +42,8 @@ struct SMasterNodeData {
struct SMasterWorkspaceData {
WORKSPACEID workspaceID = WORKSPACE_INVALID;
eOrientation orientation = ORIENTATION_LEFT;
// Previously focused non-master window when `focusmaster previous` command was issued
PHLWINDOWREF focusMasterPrev;
//
bool operator==(const SMasterWorkspaceData& rhs) const {