From a652b7065ab2b859199c31f194c4dba31d3d9182 Mon Sep 17 00:00:00 2001 From: luke bonham Date: Sat, 8 Nov 2014 12:06:48 +0100 Subject: [PATCH] centerfair: added no cls[1] case --- layout/centerfair.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/layout/centerfair.lua b/layout/centerfair.lua index 01a2fe0..e2ecb33 100644 --- a/layout/centerfair.lua +++ b/layout/centerfair.lua @@ -95,7 +95,10 @@ function centerfair.arrange(p) g.height = wa.height - 2*useless_gap - 2 g.x = offset_x + useless_gap + global_border g.y = offset_y + global_border - cls[1]:geometry(g) + + if cls[1] then + cls[1]:geometry(g) + end -- Treat the other clients -- 2.39.5