From 35ff4203d8012a10bea0f4f48fc27fb20005aef8 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 31 Aug 2009 10:32:53 +0200 Subject: [PATCH] magnifier: fix then no tiled client Signed-off-by: Julien Danjou --- lib/awful/layout/suit/magnifier.lua.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/awful/layout/suit/magnifier.lua.in b/lib/awful/layout/suit/magnifier.lua.in index 06c221afd..2d4a52675 100644 --- a/lib/awful/layout/suit/magnifier.lua.in +++ b/lib/awful/layout/suit/magnifier.lua.in @@ -34,15 +34,15 @@ function arrange(p) fidx = 1 end - -- Abort if no clients are present - if not focus then return end - -- If focused window is not tiled, take the first one which is tiled. if client.floating.get(focus) then focus = cls[1] fidx = 1 end + -- Abort if no clients are present + if not focus then return end + local geometry = {} if #cls > 1 then geometry.width = area.width * math.sqrt(mwfact)