aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/layout/MasterLayout.cpp
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-04-02 12:46:05 +0100
committerVaxry <[email protected]>2024-04-02 12:46:15 +0100
commit05eb2d4af212f279cc3c25ae9c654bce627db05c (patch)
treef5b48463556e144184cdffabca2d1f77976f4fc6 /src/layout/MasterLayout.cpp
parent04a35891a1cef8d1b5aad4229186611fcf096f1b (diff)
downloadHyprland-05eb2d4af212f279cc3c25ae9c654bce627db05c.tar.gz
Hyprland-05eb2d4af212f279cc3c25ae9c654bce627db05c.zip
master: guard window in moveWindowTo
fixes #5374
Diffstat (limited to 'src/layout/MasterLayout.cpp')
-rw-r--r--src/layout/MasterLayout.cpp3
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) {