awful.layout.suit.magnifier: fix position of focused screen

Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Gregor Best 2009-03-13 22:23:35 +01:00 committed by Julien Danjou
parent 2aeb2304e7
commit 2d816fd80c
2 changed files with 3 additions and 1 deletions

View File

@ -69,6 +69,7 @@ local function on_arrange (screen)
p.nmaster = tag.getnmaster(t) p.nmaster = tag.getnmaster(t)
p.mwfact = tag.getmwfact(t) p.mwfact = tag.getmwfact(t)
p.tagdata = tag.getdata(t) p.tagdata = tag.getdata(t)
p.screen = screen
get(screen).arrange(p) get(screen).arrange(p)
end end

View File

@ -24,9 +24,10 @@ function arrange(p)
local cls = p.clients local cls = p.clients
local focus = capi.client.focus local focus = capi.client.focus
local mwfact = p.mwfact local mwfact = p.mwfact
local fidx
-- Check that the focused window is on the right screen -- Check that the focused window is on the right screen
if focus and focus.screen ~= screen then focus = nil end if focus and focus.screen ~= p.screen then focus = nil end
if not focus and #cls > 0 then if not focus and #cls > 0 then
focus = cls[1] focus = cls[1]