diff options
author | Vaxry <[email protected]> | 2024-04-02 12:46:05 +0100 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-04-02 12:46:15 +0100 |
commit | 05eb2d4af212f279cc3c25ae9c654bce627db05c (patch) | |
tree | f5b48463556e144184cdffabca2d1f77976f4fc6 | |
parent | 04a35891a1cef8d1b5aad4229186611fcf096f1b (diff) | |
download | Hyprland-05eb2d4af212f279cc3c25ae9c654bce627db05c.tar.gz Hyprland-05eb2d4af212f279cc3c25ae9c654bce627db05c.zip |
master: guard window in moveWindowTo
fixes #5374
-rw-r--r-- | src/layout/MasterLayout.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/layout/MasterLayout.cpp b/src/layout/MasterLayout.cpp index cac64c6d..375840fb 100644 --- a/src/layout/MasterLayout.cpp +++ b/src/layout/MasterLayout.cpp @@ -1005,6 +1005,9 @@ void CHyprMasterLayout::moveWindowTo(CWindow* pWindow, const std::string& dir) { const auto PWINDOW2 = g_pCompositor->getWindowInDirection(pWindow, dir[0]); + if (!PWINDOW2) + return; + pWindow->setAnimationsToMove(); if (pWindow->m_iWorkspaceID != PWINDOW2->m_iWorkspaceID) { |