diff --git a/lib/awful/layout/suit/magnifier.lua.in b/lib/awful/layout/suit/magnifier.lua.in index 5607f429..d9eafa86 100644 --- a/lib/awful/layout/suit/magnifier.lua.in +++ b/lib/awful/layout/suit/magnifier.lua.in @@ -23,8 +23,9 @@ function magnifier.arrange(p) -- Fullscreen? local area = p.workarea local cls = p.clients - local focus = capi.client.focus - local mwfact = tag.getmwfact(tag.selected(p.screen)) + local focus = p.focus or capi.client.focus + local t = p.tag or tag.selected(p.screen) + local mwfact = tag.getmwfact(t) local fidx -- Check that the focused window is on the right screen diff --git a/lib/awful/layout/suit/tile.lua.in b/lib/awful/layout/suit/tile.lua.in index c5500236..35ffb984 100644 --- a/lib/awful/layout/suit/tile.lua.in +++ b/lib/awful/layout/suit/tile.lua.in @@ -74,7 +74,7 @@ local function tile_group(cls, wa, orientation, fact, group) end local function do_tile(param, orientation) - local t = tag.selected(param.screen) + local t = param.tag or tag.selected(param.screen) orientation = orientation or "right" -- This handles all different orientations.