X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/308b7b12020a59b5d0269772028c25a826ac10c0..b658401b3307992aef9ff284c8b836a329cfd8b5:/layout/centerwork.lua diff --git a/layout/centerwork.lua b/layout/centerwork.lua index 1a45e2f..98a3ac2 100644 --- a/layout/centerwork.lua +++ b/layout/centerwork.lua @@ -60,6 +60,8 @@ function centerwork.arrange(p) g.height = wa.height - 2*useless_gap - 2*c.border_width g.width = mainwid - 2*c.border_width + if g.width < 1 then g.width = 1 end + if g.height < 1 then g.height = 1 end g.x = wa.x + slaveLwid g.y = wa.y + useless_gap @@ -112,6 +114,8 @@ function centerwork.arrange(p) g.height = slaveBhei - 2*useless_gap - 2*c.border_width end + if g.width < 1 then g.width = 1 end + if g.height < 1 then g.height = 1 end c:geometry(g) at = at + 1