From 01f4522b69c27bca8ae36d036adcaa5c8ac3b37a Mon Sep 17 00:00:00 2001 From: Kamikadze Date: Sun, 19 Jan 2025 02:41:07 +0500 Subject: [PATCH] fix predictSizeForNewWindowTiled --- src/layout/DwindleLayout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layout/DwindleLayout.cpp b/src/layout/DwindleLayout.cpp index c6cf2b4ccee..edada9183fc 100644 --- a/src/layout/DwindleLayout.cpp +++ b/src/layout/DwindleLayout.cpp @@ -1084,7 +1084,7 @@ Vector2D CHyprDwindleLayout::predictSizeForNewWindowTiled() { // create a fake node SDwindleNodeData node; - if (!candidate) + if (!candidate || candidate->monitorID() != g_pCompositor->m_pLastMonitor->ID) return g_pCompositor->m_pLastMonitor->vecSize; else { const auto PNODE = getNodeFromWindow(candidate);