X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/ce6d75bb8e259cc8b9a36039b8841436bae4d523..a4d4d7a5f364d9f1150dcb78be5ec1e1f66e5b95:/layout/cascade.lua diff --git a/layout/cascade.lua b/layout/cascade.lua index a7c0032..3d7598b 100644 --- a/layout/cascade.lua +++ b/layout/cascade.lua @@ -69,6 +69,8 @@ function cascade.arrange(p) g.y = wa.y + (i - 1) * cascade.offset_y g.width = wa.width - current_offset_x - 2*c.border_width g.height = wa.height - current_offset_y - 2*c.border_width + if g.width < 1 then g.width = 1 end + if g.height < 1 then g.height = 1 end c:geometry(g) end