diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-12-09 17:08:04 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-12-09 17:08:04 +0000 |
| commit | fd43d2bea7e8d6e0915c7c2838554cde5356f54f (patch) | |
| tree | 8b22b9f4b9ba72c3d2a551a96e082bcb04fed1f6 /src/layout/IHyprLayout.cpp | |
| parent | b9812f8bc0f372875af8c332e4537fdbf2b99c23 (diff) | |
fix drag resizing on special ws-es
Diffstat (limited to 'src/layout/IHyprLayout.cpp')
| -rw-r--r-- | src/layout/IHyprLayout.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp index a5ff761e..f0ca10df 100644 --- a/src/layout/IHyprLayout.cpp +++ b/src/layout/IHyprLayout.cpp @@ -205,6 +205,8 @@ void IHyprLayout::onMouseMove(const Vector2D& mousePos) { return; } + const auto SPECIAL = g_pCompositor->isWorkspaceSpecial(DRAGGINGWINDOW->m_iWorkspaceID); + const auto DELTA = Vector2D(mousePos.x - m_vBeginDragXY.x, mousePos.y - m_vBeginDragXY.y); const auto TICKDELTA = Vector2D(mousePos.x - m_vLastDragXY.x, mousePos.y - m_vLastDragXY.y); @@ -271,7 +273,7 @@ void IHyprLayout::onMouseMove(const Vector2D& mousePos) { // and check its monitor const auto PMONITOR = g_pCompositor->getMonitorFromVector(middle); - if (PMONITOR) { + if (PMONITOR && !SPECIAL) { DRAGGINGWINDOW->m_iMonitorID = PMONITOR->ID; DRAGGINGWINDOW->moveToWorkspace(PMONITOR->activeWorkspace); |
