3
0
mirror of https://github.com/hyprwm/Hyprland.git synced 2026-02-05 00:35:34 +00:00

desktop/reservedArea: clamp dynamic types to 0

ref https://github.com/hyprwm/Hyprland/discussions/12880
This commit is contained in:
Vaxry
2026-01-08 12:25:39 +01:00
parent f54dd4da4a
commit f767782e3f

View File

@ -82,6 +82,8 @@ void CReservedArea::addType(eReservedDynamicType t, const Vector2D& topLeft, con
auto& ref = m_dynamicReserved[t];
ref.topLeft += topLeft;
ref.bottomRight += bottomRight;
ref.topLeft = ref.topLeft.clamp({0, 0});
ref.bottomRight = ref.bottomRight.clamp({0, 0});
calculate();
}