Merge branch 'BlingCorp:master' into master
This commit is contained in:
commit
057db5aeed
|
@ -31,6 +31,7 @@ build = {
|
||||||
["bling.helpers.filesystem"] = "helpers/filesystem.lua",
|
["bling.helpers.filesystem"] = "helpers/filesystem.lua",
|
||||||
["bling.helpers.shape"] = "helpers/shape.lua",
|
["bling.helpers.shape"] = "helpers/shape.lua",
|
||||||
["bling.helpers.time"] = "helpers/time.lua",
|
["bling.helpers.time"] = "helpers/time.lua",
|
||||||
|
["bling.helpers.icon_theme"] = "helpers/icon_theme.lua",
|
||||||
["bling.layout"] = "layout/init.lua",
|
["bling.layout"] = "layout/init.lua",
|
||||||
["bling.layout.centered"] = "layout/centered.lua",
|
["bling.layout.centered"] = "layout/centered.lua",
|
||||||
["bling.layout.deck"] = "layout/deck.lua",
|
["bling.layout.deck"] = "layout/deck.lua",
|
||||||
|
|
|
@ -5,6 +5,7 @@ mylayout.name = "deck"
|
||||||
function mylayout.arrange(p)
|
function mylayout.arrange(p)
|
||||||
local area = p.workarea
|
local area = p.workarea
|
||||||
local t = p.tag or screen[p.screen].selected_tag
|
local t = p.tag or screen[p.screen].selected_tag
|
||||||
|
local mwfact = t.master_width_factor
|
||||||
local client_count = #p.clients
|
local client_count = #p.clients
|
||||||
|
|
||||||
if client_count == 1 then
|
if client_count == 1 then
|
||||||
|
@ -19,8 +20,8 @@ function mylayout.arrange(p)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local xoffset = area.width * 0.1 / (client_count - 1)
|
local xoffset = area.width * 0.5 * (1 - mwfact) / (client_count - 1)
|
||||||
local yoffset = area.height * 0.1 / (client_count - 1)
|
local yoffset = area.height * 0.5 * (1 - mwfact) / (client_count - 1)
|
||||||
|
|
||||||
for idx = 1, client_count do
|
for idx = 1, client_count do
|
||||||
local c = p.clients[idx]
|
local c = p.clients[idx]
|
||||||
|
|
Loading…
Reference in New Issue