X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/ce6d75bb8e259cc8b9a36039b8841436bae4d523..62ad74c4cd57b509fd69d85bbd7ca9e6b28496c8:/layout/cascade.lua?ds=sidebyside 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