From 66f999b660951eb617ee4b94a5223c0d578a343c Mon Sep 17 00:00:00 2001 From: khushal-solves Date: Sat, 4 Jan 2025 18:44:25 +0530 Subject: [PATCH] Fixed weird size issue of 1st foot slave when set floating --- src/layout/IHyprLayout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp index e90ab0f0..f7a67cb9 100644 --- a/src/layout/IHyprLayout.cpp +++ b/src/layout/IHyprLayout.cpp @@ -12,7 +12,7 @@ void IHyprLayout::onWindowCreated(PHLWINDOW pWindow, eDirection direction) { CBox desiredGeometry = {}; g_pXWaylandManager->getGeometryForWindow(pWindow, &desiredGeometry); - if (desiredGeometry.width <= 5 || desiredGeometry.height <= 5) { + if (desiredGeometry.width <= 14 || desiredGeometry.height <= 14) { const auto PMONITOR = pWindow->m_pMonitor.lock(); pWindow->m_vLastFloatingSize = PMONITOR->vecSize / 2.f; } else