Fixed weird size issue of 1st foot slave when set floating

This commit is contained in:
khushal-solves 2025-01-04 18:44:25 +05:30
parent 60f069d540
commit 66f999b660

View file

@ -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