centerfair: added no cls[1] case

This commit is contained in:
luke bonham 2014-11-08 12:06:48 +01:00 committed by copycat-killer
parent 317fea4ca4
commit a652b7065a
1 changed files with 4 additions and 1 deletions

View File

@ -95,7 +95,10 @@ function centerfair.arrange(p)
g.height = wa.height - 2*useless_gap - 2 g.height = wa.height - 2*useless_gap - 2
g.x = offset_x + useless_gap + global_border g.x = offset_x + useless_gap + global_border
g.y = offset_y + 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 -- Treat the other clients