X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/308b7b12020a59b5d0269772028c25a826ac10c0..5e8b6394ff09c3cf0b7f7d6bf61a2174efe87359:/layout/centerwork.lua?ds=inline 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