Merge pull request #1165 from psychon/fix-deprecation-warning

Corner layout: Fix deprecation warning
This commit is contained in:
Emmanuel Lepage Vallée 2016-10-10 18:01:32 -04:00 committed by GitHub
commit de121975bf
1 changed files with 1 additions and 2 deletions

View File

@ -11,7 +11,6 @@
local ipairs = ipairs
local math = math
local capi = {screen = screen}
local tag = require("awful.tag")
--- The cornernw layout layoutbox icon.
-- @beautiful beautiful.layout_cornernw
@ -120,7 +119,7 @@ local function do_corner(p, orientation)
master.height = wa.height
end
if #cls < 2 then
if tag.getmfpol(t) == "expand" then
if t.master_fill_policy == "expand" then
master = wa
else
master.x = master.x + (wa.width - master.width)/2