diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-07-01 16:28:17 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-07-01 16:28:17 +0200 |
| commit | 6c28388420a379d9da87dcb84d0791270217987a (patch) | |
| tree | a8f4c286ecc56c75cf9908dbd2d9d9d785b731e6 /src/layout/IHyprLayout.cpp | |
| parent | e96fcb31f0df36a88922fa1870e3372218c79539 (diff) | |
layout: minor style fixes
Diffstat (limited to 'src/layout/IHyprLayout.cpp')
| -rw-r--r-- | src/layout/IHyprLayout.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp index fd2216e3..a75ce311 100644 --- a/src/layout/IHyprLayout.cpp +++ b/src/layout/IHyprLayout.cpp @@ -97,9 +97,8 @@ void IHyprLayout::onWindowCreatedFloating(CWindow* pWindow) { } // reject any windows with size <= 5x5 - if (pWindow->m_vRealSize.goalv().x <= 5 || pWindow->m_vRealSize.goalv().y <= 5) { + if (pWindow->m_vRealSize.goalv().x <= 5 || pWindow->m_vRealSize.goalv().y <= 5) pWindow->m_vRealSize = PMONITOR->vecSize / 2.f; - } if (pWindow->m_bIsX11 && pWindow->m_uSurface.xwayland->override_redirect) { @@ -147,11 +146,10 @@ void IHyprLayout::onWindowCreatedFloating(CWindow* pWindow) { // if it is, we respect where it wants to put itself, but apply monitor offset if outside // most of these are popups - if (const auto POPENMON = g_pCompositor->getMonitorFromVector(middlePoint); POPENMON->ID != PMONITOR->ID) { + if (const auto POPENMON = g_pCompositor->getMonitorFromVector(middlePoint); POPENMON->ID != PMONITOR->ID) pWindow->m_vRealPosition = Vector2D(desiredGeometry.x, desiredGeometry.y) - POPENMON->vecPosition + PMONITOR->vecPosition; - } else { + else pWindow->m_vRealPosition = Vector2D(desiredGeometry.x, desiredGeometry.y); - } } } |
