mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-25 17:21:54 -07:00
renderer: clamp rounding_power (#10816)
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user