summaryrefslogtreecommitdiff
path: root/src/layout/MasterLayout.hpp
diff options
context:
space:
mode:
authorshadowmax31 <ety_95@protonmail.com>2023-09-04 10:45:58 -0400
committerGitHub <noreply@github.com>2023-09-04 16:45:58 +0200
commitb4c832a1f2d1d85815a28990c7337a1ffc34fc9b (patch)
tree4412403a0e782ac5f8eec1e7092bcc18725121cf /src/layout/MasterLayout.hpp
parent9f3a64481ecb277de6775efbb0f3d8d7648a610c (diff)
master: Add orientationcycle command on MasterLayout (#3128)
Diffstat (limited to 'src/layout/MasterLayout.hpp')
-rw-r--r--src/layout/MasterLayout.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/layout/MasterLayout.hpp b/src/layout/MasterLayout.hpp
index 7cc11511..3c381dac 100644
--- a/src/layout/MasterLayout.hpp
+++ b/src/layout/MasterLayout.hpp
@@ -1,6 +1,7 @@
#pragma once
#include "IHyprLayout.hpp"
+#include "../config/ConfigManager.hpp"
#include <vector>
#include <list>
#include <deque>
@@ -32,7 +33,7 @@ struct SMasterNodeData {
int workspaceID = -1;
bool operator==(const SMasterNodeData& rhs) const {
- return pWindow == rhs.pWindow;
+ return pWindow == rhs.pWindow;
}
};
@@ -41,7 +42,7 @@ struct SMasterWorkspaceData {
eOrientation orientation = ORIENTATION_LEFT;
bool operator==(const SMasterWorkspaceData& rhs) const {
- return workspaceID == rhs.workspaceID;
+ return workspaceID == rhs.workspaceID;
}
};
@@ -71,6 +72,9 @@ class CHyprMasterLayout : public IHyprLayout {
bool m_bForceWarps = false;
+ void buildOrientationCycleVectorFromVars(std::vector<eOrientation>& cycle, CVarList& vars);
+ void buildOrientationCycleVectorFromEOperation(std::vector<eOrientation>& cycle);
+ void runOrientationCycle(SLayoutMessageHeader& header, CVarList* vars, int next);
int getNodesOnWorkspace(const int&);
void applyNodeDataToWindow(SMasterNodeData*);
SMasterNodeData* getNodeFromWindow(CWindow*);