diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2022-08-21 17:10:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-21 17:10:24 +0200 |
| commit | c4ba11729f9bd62f2872de67699d6d355b6b5173 (patch) | |
| tree | 6c56e5f66d5c56b0c8214f4f825c14f247397a16 /src/layout/IHyprLayout.cpp | |
| parent | 5569e1f69c97ee5bfd7aec616be2229045b356f2 (diff) | |
| parent | f7f34468823b15e7a6d75710df0bff274a8e1981 (diff) | |
Merge pull request #557 from xDarksome/main
Add window{open/close/move} IPC events (#549)
Diffstat (limited to 'src/layout/IHyprLayout.cpp')
| -rw-r--r-- | src/layout/IHyprLayout.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp index 4a3f1800..09ca27c7 100644 --- a/src/layout/IHyprLayout.cpp +++ b/src/layout/IHyprLayout.cpp @@ -206,8 +206,8 @@ void IHyprLayout::onMouseMove(const Vector2D& mousePos) { if (PMONITOR) { DRAGGINGWINDOW->m_iMonitorID = PMONITOR->ID; - DRAGGINGWINDOW->m_iWorkspaceID = PMONITOR->activeWorkspace; - + DRAGGINGWINDOW->moveToWorkspace(PMONITOR->activeWorkspace); + DRAGGINGWINDOW->updateToplevel(); } @@ -231,7 +231,7 @@ void IHyprLayout::changeWindowFloatingMode(CWindow* pWindow) { if (!TILED) { const auto PNEWMON = g_pCompositor->getMonitorFromVector(pWindow->m_vRealPosition.vec() + pWindow->m_vRealSize.vec() / 2.f); pWindow->m_iMonitorID = PNEWMON->ID; - pWindow->m_iWorkspaceID = PNEWMON->activeWorkspace; + pWindow->moveToWorkspace(PNEWMON->activeWorkspace); // save real pos cuz the func applies the default 5,5 mid const auto PSAVEDPOS = pWindow->m_vRealPosition.vec(); |
