feat(lib: awful: layout: suit: corner): add support for 'master_fill_policy'
This commit is contained in:
parent
fb4a331014
commit
34290433c2
|
@ -89,7 +89,7 @@ local function do_corner(p, orientation)
|
||||||
row.x_increment = row.win_width
|
row.x_increment = row.win_width
|
||||||
row.win_idx = 0
|
row.win_idx = 0
|
||||||
|
|
||||||
-- Extend master if there is only a few windows
|
-- Extend master if there is only a few windows and "expand" policy is set
|
||||||
if #cls < 3 then
|
if #cls < 3 then
|
||||||
if row_privileged then
|
if row_privileged then
|
||||||
master.x = wa.x
|
master.x = wa.x
|
||||||
|
@ -99,7 +99,12 @@ 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
|
||||||
master = wa
|
master = wa
|
||||||
|
else
|
||||||
|
master.x = master.x + (wa.width - master.width)/2
|
||||||
|
master.y = master.y + (wa.height - master.height)/2
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue