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