From f3c57faf1db4252409277a8989ac8f7e6662a732 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 18 Sep 2009 13:40:29 +0200 Subject: [PATCH] awful.layout.suit.magnifier: simplify Signed-off-by: Julien Danjou --- lib/awful/layout/suit/magnifier.lua.in | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/lib/awful/layout/suit/magnifier.lua.in b/lib/awful/layout/suit/magnifier.lua.in index 2d4a52675..3248299f9 100644 --- a/lib/awful/layout/suit/magnifier.lua.in +++ b/lib/awful/layout/suit/magnifier.lua.in @@ -19,7 +19,6 @@ local client = require("awful.client") module("awful.layout.suit.magnifier") function arrange(p) - -- Fullscreen? local area = p.workarea local cls = p.clients local focus = capi.client.focus @@ -29,18 +28,14 @@ function arrange(p) -- Check that the focused window is on the right screen if focus and focus.screen ~= p.screen then focus = nil end + -- If we don't have a focused window on our screen, + -- and we have at least one client, take the first one. if not focus and #cls > 0 then focus = cls[1] fidx = 1 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 + -- Abort if clients to arrange are present. if not focus then return end local geometry = {}