diff --git a/src/managers/XWaylandManager.cpp b/src/managers/XWaylandManager.cpp index 6b3ad048..7956c38a 100644 --- a/src/managers/XWaylandManager.cpp +++ b/src/managers/XWaylandManager.cpp @@ -151,7 +151,7 @@ void CHyprXWaylandManager::setWindowSize(CWindow* pWindow, Vector2D size, bool f const auto PMONITOR = g_pCompositor->getMonitorFromID(pWindow->m_iMonitorID); - size = size.clamp(Vector2D{0, 0}); + size = size.clamp(Vector2D{0, 0}, Vector2D{std::numeric_limits::infinity(), std::numeric_limits::infinity()}); // calculate pos // TODO: this should be decoupled from setWindowSize IMO