From 05eb2d4af212f279cc3c25ae9c654bce627db05c Mon Sep 17 00:00:00 2001 From: Vaxry Date: Tue, 2 Apr 2024 12:46:05 +0100 Subject: master: guard window in moveWindowTo fixes #5374 --- src/layout/MasterLayout.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/layout/MasterLayout.cpp') 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) { -- cgit v1.2.3