summaryrefslogtreecommitdiff
path: root/src/managers/LayoutManager.hpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2026-02-21 21:30:39 +0000
committerGitHub <noreply@github.com>2026-02-21 21:30:39 +0000
commit723870337f299d4c80aa0048144f3a1ca1c885bd (patch)
treeca3279ae5dbc841f676c64d2f58f895de13cd3bf /src/managers/LayoutManager.hpp
parent51f8849e541f0a8150ac3a43fa928c1e299daf18 (diff)
layout: rethonk layouts from the ground up (#12890)
Rewrites layouts to be much smaller, and deal with much less annoying BS. Improves the overall architecture, unifies handling of pseudotiling, and various other improvements.
Diffstat (limited to 'src/managers/LayoutManager.hpp')
-rw-r--r--src/managers/LayoutManager.hpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/managers/LayoutManager.hpp b/src/managers/LayoutManager.hpp
deleted file mode 100644
index 80c522fb..00000000
--- a/src/managers/LayoutManager.hpp
+++ /dev/null
@@ -1,31 +0,0 @@
-#pragma once
-
-#include "../layout/DwindleLayout.hpp"
-#include "../layout/MasterLayout.hpp"
-
-class CLayoutManager {
- public:
- CLayoutManager();
-
- IHyprLayout* getCurrentLayout();
-
- void switchToLayout(std::string);
-
- bool addLayout(const std::string& name, IHyprLayout* layout);
- bool removeLayout(IHyprLayout* layout);
- std::vector<std::string> getAllLayoutNames();
-
- private:
- enum eHyprLayouts : uint8_t {
- LAYOUT_DWINDLE = 0,
- LAYOUT_MASTER
- };
-
- int m_currentLayoutID = LAYOUT_DWINDLE;
-
- CHyprDwindleLayout m_dwindleLayout;
- CHyprMasterLayout m_masterLayout;
- std::vector<std::pair<std::string, IHyprLayout*>> m_layouts;
-};
-
-inline UP<CLayoutManager> g_pLayoutManager;