From b4c832a1f2d1d85815a28990c7337a1ffc34fc9b Mon Sep 17 00:00:00 2001 From: shadowmax31 Date: Mon, 4 Sep 2023 10:45:58 -0400 Subject: master: Add orientationcycle command on MasterLayout (#3128) --- src/layout/MasterLayout.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/layout/MasterLayout.hpp') 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 #include #include @@ -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& cycle, CVarList& vars); + void buildOrientationCycleVectorFromEOperation(std::vector& cycle); + void runOrientationCycle(SLayoutMessageHeader& header, CVarList* vars, int next); int getNodesOnWorkspace(const int&); void applyNodeDataToWindow(SMasterNodeData*); SMasterNodeData* getNodeFromWindow(CWindow*); -- cgit v1.2.3