window: allow rounding power of 1

supersedes #11510
This commit is contained in:
Vaxry 2025-08-29 11:12:30 +02:00
parent 4b2bfbd85f
commit a209f9911c
Signed by: vaxry
GPG key ID: 665806380871D640

View file

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