Setting rounding in window rule produces an error but works directly #15728
Hyprland versionv0.56.1 Is this a regression?Not sure, haven't used Lua config before 0.56.1 What's the bug?I have a window rule for setting rounding of specific windows to 40px. It works fine when I force usage of hyprlang-format config but when I ported the window rule to Lua, I get a Reproduction steps
Minimal rule that consistently produces an error: hl.window_rule({
name = "rounded-floating-terminal",
match = {
initial_class = "foot",
},
rounding = 40,
center = true,
float = true,
})Hacky workaround (if the rounding limit was intentional, it needs to produce an error too but for now it works): hl.on("window.open", function(w)
if not w or w.initial_class ~= "foot" then
return
end
hl.dispatch(hl.dsp.window.set_prop({
prop = "rounding",
value = "40",
window = w,
}))
end)AttachmentsNo response I acknowledge that:
|
Replies: 2 comments
|
it was intentional but I guess 20 is a bit too harsh |
it was intentional but I guess 20 is a bit too harsh