renderer: clamp rounding_power (#10816)

This commit is contained in:
rafiq 2025-06-27 01:26:46 +08:00 committed by GitHub
parent 3bbdf9dc5a
commit 9a67e0421b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1186,7 +1186,7 @@ float CWindow::rounding() {
float CWindow::roundingPower() {
static auto PROUNDINGPOWER = CConfigValue<Hyprlang::FLOAT>("decoration:rounding_power");
return m_windowData.roundingPower.valueOr(*PROUNDINGPOWER);
return m_windowData.roundingPower.valueOr(std::clamp(*PROUNDINGPOWER, 2.0f, 10.0f));
}
void CWindow::updateWindowData() {