summaryrefslogtreecommitdiff
path: root/src/layout/DwindleLayout.cpp
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2022-08-16 21:32:12 +0200
committervaxerski <vaxry@vaxry.net>2022-08-16 21:32:12 +0200
commita59641096cc3bf1a5df13bbd05bb5a36e8767168 (patch)
tree2127d09d1bb42adc7d14c228748e7e33190593df /src/layout/DwindleLayout.cpp
parentc6de4ee4b76f6ad3e53f00e6e32e2be2dbe63c26 (diff)
ignore dwindle reload on full window null
Diffstat (limited to 'src/layout/DwindleLayout.cpp')
-rw-r--r--src/layout/DwindleLayout.cpp23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/layout/DwindleLayout.cpp b/src/layout/DwindleLayout.cpp
index 04d0223f..677d0c7e 100644
--- a/src/layout/DwindleLayout.cpp
+++ b/src/layout/DwindleLayout.cpp
@@ -516,20 +516,21 @@ void CHyprDwindleLayout::recalculateMonitor(const int& monid) {
// massive hack from the fullscreen func
const auto PFULLWINDOW = g_pCompositor->getFullscreenWindowOnWorkspace(PWORKSPACE->m_iID);
- if (!PFULLWINDOW) // ????
+ if (!PFULLWINDOW) { // ????
PWORKSPACE->m_bHasFullscreenWindow = false;
+ } else {
+ SDwindleNodeData fakeNode;
+ fakeNode.pWindow = PFULLWINDOW;
+ fakeNode.position = PMONITOR->vecPosition + PMONITOR->vecReservedTopLeft;
+ fakeNode.size = PMONITOR->vecSize - PMONITOR->vecReservedTopLeft - PMONITOR->vecReservedBottomRight;
+ fakeNode.workspaceID = PWORKSPACE->m_iID;
+ PFULLWINDOW->m_vPosition = fakeNode.position;
+ PFULLWINDOW->m_vSize = fakeNode.size;
- SDwindleNodeData fakeNode;
- fakeNode.pWindow = PFULLWINDOW;
- fakeNode.position = PMONITOR->vecPosition + PMONITOR->vecReservedTopLeft;
- fakeNode.size = PMONITOR->vecSize - PMONITOR->vecReservedTopLeft - PMONITOR->vecReservedBottomRight;
- fakeNode.workspaceID = PWORKSPACE->m_iID;
- PFULLWINDOW->m_vPosition = fakeNode.position;
- PFULLWINDOW->m_vSize = fakeNode.size;
-
- applyNodeDataToWindow(&fakeNode);
+ applyNodeDataToWindow(&fakeNode);
- return;
+ return;
+ }
}
const auto TOPNODE = getMasterNodeOnWorkspace(PMONITOR->activeWorkspace);