diff options
author | Jeremy Huang <[email protected]> | 2023-10-06 14:33:11 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2023-10-06 22:33:11 +0100 |
commit | 61d3d4dee7a4f9f68b4e7dd1e77ccd9acbed9a7c (patch) | |
tree | aa21bf9b60b800a4c0057301f18ee0fb59a42cdd | |
parent | 1afb00a01b7cab3e68f5af3ca6a7d7d86b8f913e (diff) | |
download | Hyprland-61d3d4dee7a4f9f68b4e7dd1e77ccd9acbed9a7c.tar.gz Hyprland-61d3d4dee7a4f9f68b4e7dd1e77ccd9acbed9a7c.zip |
master: fix drop_at_cursor on workspace 2 (#3512)
-rw-r--r-- | src/layout/MasterLayout.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/layout/MasterLayout.cpp b/src/layout/MasterLayout.cpp index 6fa168c4..0eeea16e 100644 --- a/src/layout/MasterLayout.cpp +++ b/src/layout/MasterLayout.cpp @@ -139,6 +139,8 @@ void CHyprMasterLayout::onWindowCreatedTiling(CWindow* pWindow, eDirection direc if (*PDROPATCURSOR && g_pInputManager->dragMode == MBIND_MOVE) { // if dragging window to move, drop it at the cursor position instead of bottom/top of stack for (auto it = m_lMasterNodesData.begin(); it != m_lMasterNodesData.end(); ++it) { + if (it->workspaceID != pWindow->m_iWorkspaceID) + continue; const wlr_box box = it->pWindow->getWindowIdealBoundingBoxIgnoreReserved(); if (wlr_box_contains_point(&box, MOUSECOORDS.x, MOUSECOORDS.y)) { // TODO: Deny when not using mouse switch (orientation) { |