Corner layout: Fix deprecation warning
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
2fb8492076
commit
19fe233982
|
@ -12,7 +12,6 @@
|
||||||
local ipairs = ipairs
|
local ipairs = ipairs
|
||||||
local math = math
|
local math = math
|
||||||
local capi = {screen = screen}
|
local capi = {screen = screen}
|
||||||
local tag = require("awful.tag")
|
|
||||||
|
|
||||||
--- The cornernw layout layoutbox icon.
|
--- The cornernw layout layoutbox icon.
|
||||||
-- @beautiful beautiful.layout_cornernw
|
-- @beautiful beautiful.layout_cornernw
|
||||||
|
@ -121,7 +120,7 @@ local function do_corner(p, orientation)
|
||||||
master.height = wa.height
|
master.height = wa.height
|
||||||
end
|
end
|
||||||
if #cls < 2 then
|
if #cls < 2 then
|
||||||
if tag.getmfpol(t) == "expand" then
|
if t.master_fill_policy == "expand" then
|
||||||
master = wa
|
master = wa
|
||||||
else
|
else
|
||||||
master.x = master.x + (wa.width - master.width)/2
|
master.x = master.x + (wa.width - master.width)/2
|
||||||
|
|
Loading…
Reference in New Issue