summaryrefslogtreecommitdiff
path: root/src/layout/MasterLayout.cpp
diff options
context:
space:
mode:
authorAqa-Ib <victorcana@gmx.com>2024-11-06 17:52:10 +0100
committerGitHub <noreply@github.com>2024-11-06 16:52:10 +0000
commit8f42401aa8ac5a7778e29024be7ef3e0a063de13 (patch)
treefd5891a72a6a218471e54ff81d3a80e4983daa2d /src/layout/MasterLayout.cpp
parent97a309b7844aea82b200139febc99998e7f06402 (diff)
groups: add merge_groups_on_groupbar (#8362)
Diffstat (limited to 'src/layout/MasterLayout.cpp')
-rw-r--r--src/layout/MasterLayout.cpp20
1 files changed, 7 insertions, 13 deletions
diff --git a/src/layout/MasterLayout.cpp b/src/layout/MasterLayout.cpp
index afe79ecf..b8b3efea 100644
--- a/src/layout/MasterLayout.cpp
+++ b/src/layout/MasterLayout.cpp
@@ -101,21 +101,15 @@ void CHyprMasterLayout::onWindowCreatedTiling(PHLWINDOW pWindow, eDirection dire
PNODE->workspaceID = pWindow->workspaceID();
PNODE->pWindow = pWindow;
- const auto WINDOWSONWORKSPACE = getNodesOnWorkspace(PNODE->workspaceID);
- static auto PMFACT = CConfigValue<Hyprlang::FLOAT>("master:mfact");
- float lastSplitPercent = *PMFACT;
+ const auto WINDOWSONWORKSPACE = getNodesOnWorkspace(PNODE->workspaceID);
+ static auto PMFACT = CConfigValue<Hyprlang::FLOAT>("master:mfact");
+ float lastSplitPercent = *PMFACT;
- auto OPENINGON = isWindowTiled(g_pCompositor->m_pLastWindow.lock()) && g_pCompositor->m_pLastWindow->m_pWorkspace == pWindow->m_pWorkspace ?
- getNodeFromWindow(g_pCompositor->m_pLastWindow.lock()) :
- getMasterNodeOnWorkspace(pWindow->workspaceID());
-
- const auto MOUSECOORDS = g_pInputManager->getMouseCoordsInternal();
-
- if (g_pInputManager->m_bWasDraggingWindow && OPENINGON) {
- if (OPENINGON->pWindow->checkInputOnDecos(INPUT_TYPE_DRAG_END, MOUSECOORDS, pWindow))
- return;
- }
+ auto OPENINGON = isWindowTiled(g_pCompositor->m_pLastWindow.lock()) && g_pCompositor->m_pLastWindow->m_pWorkspace == pWindow->m_pWorkspace ?
+ getNodeFromWindow(g_pCompositor->m_pLastWindow.lock()) :
+ getMasterNodeOnWorkspace(pWindow->workspaceID());
+ const auto MOUSECOORDS = g_pInputManager->getMouseCoordsInternal();
static auto PDROPATCURSOR = CConfigValue<Hyprlang::INT>("master:drop_at_cursor");
eOrientation orientation = getDynamicOrientation(pWindow->m_pWorkspace);
const auto NODEIT = std::find(m_lMasterNodesData.begin(), m_lMasterNodesData.end(), *PNODE);