Skip to content

Commit

Permalink
style: remove curly braces around short else statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Aqa-Ib committed Oct 2, 2024
1 parent ce8cc09 commit 721205c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/layout/IHyprLayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ void IHyprLayout::onWindowCreated(PHLWINDOW pWindow, eDirection direction) {
if (desiredGeometry.width <= 5 || desiredGeometry.height <= 5) {
const auto PMONITOR = g_pCompositor->getMonitorFromID(pWindow->m_iMonitorID);
pWindow->m_vLastFloatingSize = PMONITOR->vecSize / 2.f;
} else {
} else
pWindow->m_vLastFloatingSize = Vector2D(desiredGeometry.width, desiredGeometry.height);
}

pWindow->m_vPseudoSize = pWindow->m_vLastFloatingSize;

Expand Down

0 comments on commit 721205c

Please sign in to comment.