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:
parent
2aeb2304e7
commit
2d816fd80c
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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]
|
||||||
|
|
Loading…
Reference in New Issue