mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 16:05:58 +01:00
master: fix drop_at_cursor on workspace 2 (#3512)
This commit is contained in:
parent
1afb00a01b
commit
61d3d4dee7
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue