summaryrefslogtreecommitdiff
path: root/src/layout
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout')
-rw-r--r--src/layout/DwindleLayout.cpp11
-rw-r--r--src/layout/DwindleLayout.hpp2
-rw-r--r--src/layout/IHyprLayout.hpp10
-rw-r--r--src/layout/MasterLayout.cpp7
-rw-r--r--src/layout/MasterLayout.hpp5
5 files changed, 12 insertions, 23 deletions
diff --git a/src/layout/DwindleLayout.cpp b/src/layout/DwindleLayout.cpp
index fae4af52..1ce47d96 100644
--- a/src/layout/DwindleLayout.cpp
+++ b/src/layout/DwindleLayout.cpp
@@ -291,13 +291,6 @@ void CHyprDwindleLayout::onWindowCreatedTiling(CWindow* pWindow, eDirection dire
return;
}
- const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(pWindow->m_iWorkspaceID);
-
- if (PWORKSPACE->m_bHasFullscreenWindow) {
- const auto PFULLWINDOW = g_pCompositor->getFullscreenWindowOnWorkspace(PWORKSPACE->m_iID);
- g_pCompositor->setWindowFullscreen(PFULLWINDOW, false, FULLSCREEN_FULL);
- }
-
// last fail-safe to avoid duplicate fullscreens
if ((!OPENINGON || OPENINGON->pWindow == pWindow) && getNodesOnWorkspace(PNODE->workspaceID) > 1) {
for (auto& node : m_lDwindleNodesData) {
@@ -481,8 +474,8 @@ void CHyprDwindleLayout::onWindowCreatedTiling(CWindow* pWindow, eDirection dire
NEWPARENT->recalcSizePosRecursive(false, horizontalOverride, verticalOverride);
- applyNodeDataToWindow(PNODE);
- applyNodeDataToWindow(OPENINGON);
+ recalculateMonitor(pWindow->m_iMonitorID);
+
pWindow->applyGroupRules();
}
diff --git a/src/layout/DwindleLayout.hpp b/src/layout/DwindleLayout.hpp
index 993f8cb7..47818536 100644
--- a/src/layout/DwindleLayout.hpp
+++ b/src/layout/DwindleLayout.hpp
@@ -9,7 +9,7 @@
#include <format>
class CHyprDwindleLayout;
-enum eFullscreenMode : uint8_t;
+enum eFullscreenMode : int8_t;
struct SDwindleNodeData {
SDwindleNodeData* pParent = nullptr;
diff --git a/src/layout/IHyprLayout.hpp b/src/layout/IHyprLayout.hpp
index 15acbc1d..32f95a22 100644
--- a/src/layout/IHyprLayout.hpp
+++ b/src/layout/IHyprLayout.hpp
@@ -13,9 +13,10 @@ struct SLayoutMessageHeader {
CWindow* pWindow = nullptr;
};
-enum eFullscreenMode : uint8_t;
+enum eFullscreenMode : int8_t;
-enum eRectCorner {
+enum eRectCorner
+{
CORNER_NONE = 0,
CORNER_TOPLEFT,
CORNER_TOPRIGHT,
@@ -23,9 +24,10 @@ enum eRectCorner {
CORNER_BOTTOMLEFT
};
-enum eDirection {
+enum eDirection
+{
DIRECTION_DEFAULT = -1,
- DIRECTION_UP = 0,
+ DIRECTION_UP = 0,
DIRECTION_RIGHT,
DIRECTION_DOWN,
DIRECTION_LEFT
diff --git a/src/layout/MasterLayout.cpp b/src/layout/MasterLayout.cpp
index c1dd37dc..624ded2a 100644
--- a/src/layout/MasterLayout.cpp
+++ b/src/layout/MasterLayout.cpp
@@ -167,13 +167,6 @@ void CHyprMasterLayout::onWindowCreatedTiling(CWindow* pWindow, eDirection direc
}
}
- const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(pWindow->m_iWorkspaceID);
-
- if (PWORKSPACE->m_bHasFullscreenWindow) {
- const auto PFULLWINDOW = g_pCompositor->getFullscreenWindowOnWorkspace(PWORKSPACE->m_iID);
- g_pCompositor->setWindowFullscreen(PFULLWINDOW, false, FULLSCREEN_FULL);
- }
-
// recalc
recalculateMonitor(pWindow->m_iMonitorID);
}
diff --git a/src/layout/MasterLayout.hpp b/src/layout/MasterLayout.hpp
index aa201505..f220bd7b 100644
--- a/src/layout/MasterLayout.hpp
+++ b/src/layout/MasterLayout.hpp
@@ -7,10 +7,11 @@
#include <deque>
#include <any>
-enum eFullscreenMode : uint8_t;
+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,