magnifier: fix then no tiled client

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-08-31 10:32:53 +02:00
parent 133b09ccb5
commit 35ff4203d8
1 changed files with 3 additions and 3 deletions

View File

@ -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)