diff options
author | vaxerski <[email protected]> | 2023-11-03 12:19:23 +0000 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-11-03 12:19:23 +0000 |
commit | 0f6e53079864d411aa2de3262ba4c01eeeec4f5b (patch) | |
tree | c0a2d620b0a29e2ffa4eba98d8424f693fe707fa /src/layout/MasterLayout.hpp | |
parent | 88b47dfa833db2d230a2d6e6bbbf92c69afbdc28 (diff) | |
download | Hyprland-0f6e53079864d411aa2de3262ba4c01eeeec4f5b.tar.gz Hyprland-0f6e53079864d411aa2de3262ba4c01eeeec4f5b.zip |
layout: better storage for no fullscreen checks var
fixes #3731
Diffstat (limited to 'src/layout/MasterLayout.hpp')
-rw-r--r-- | src/layout/MasterLayout.hpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/layout/MasterLayout.hpp b/src/layout/MasterLayout.hpp index f0f72d6b..e316556a 100644 --- a/src/layout/MasterLayout.hpp +++ b/src/layout/MasterLayout.hpp @@ -10,8 +10,7 @@ enum eFullscreenMode : int8_t; //orientation determines which side of the screen the master area resides -enum eOrientation : uint8_t -{ +enum eOrientation : uint8_t { ORIENTATION_LEFT = 0, ORIENTATION_TOP, ORIENTATION_RIGHT, @@ -32,7 +31,10 @@ struct SMasterNodeData { int workspaceID = -1; - bool operator==(const SMasterNodeData& rhs) const { + bool ignoreFullscreenChecks = false; + + // + bool operator==(const SMasterNodeData& rhs) const { return pWindow == rhs.pWindow; } }; @@ -41,7 +43,8 @@ struct SMasterWorkspaceData { int workspaceID = -1; eOrientation orientation = ORIENTATION_LEFT; - bool operator==(const SMasterWorkspaceData& rhs) const { + // + bool operator==(const SMasterWorkspaceData& rhs) const { return workspaceID == rhs.workspaceID; } }; @@ -76,7 +79,7 @@ class CHyprMasterLayout : public IHyprLayout { void buildOrientationCycleVectorFromEOperation(std::vector<eOrientation>& cycle); void runOrientationCycle(SLayoutMessageHeader& header, CVarList* vars, int next); int getNodesOnWorkspace(const int&); - void applyNodeDataToWindow(SMasterNodeData*, bool force = false); + void applyNodeDataToWindow(SMasterNodeData*); SMasterNodeData* getNodeFromWindow(CWindow*); SMasterNodeData* getMasterNodeOnWorkspace(const int&); SMasterWorkspaceData* getMasterWorkspaceData(const int&); |