Merge branch 'BlingCorp:master' into master

This commit is contained in:
Momin Barlas 2023-10-26 00:16:22 -04:00 committed by GitHub
commit 057db5aeed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -31,6 +31,7 @@ build = {
["bling.helpers.filesystem"] = "helpers/filesystem.lua",
["bling.helpers.shape"] = "helpers/shape.lua",
["bling.helpers.time"] = "helpers/time.lua",
["bling.helpers.icon_theme"] = "helpers/icon_theme.lua",
["bling.layout"] = "layout/init.lua",
["bling.layout.centered"] = "layout/centered.lua",
["bling.layout.deck"] = "layout/deck.lua",

View File

@ -5,6 +5,7 @@ mylayout.name = "deck"
function mylayout.arrange(p)
local area = p.workarea
local t = p.tag or screen[p.screen].selected_tag
local mwfact = t.master_width_factor
local client_count = #p.clients
if client_count == 1 then
@ -19,8 +20,8 @@ function mylayout.arrange(p)
return
end
local xoffset = area.width * 0.1 / (client_count - 1)
local yoffset = area.height * 0.1 / (client_count - 1)
local xoffset = area.width * 0.5 * (1 - mwfact) / (client_count - 1)
local yoffset = area.height * 0.5 * (1 - mwfact) / (client_count - 1)
for idx = 1, client_count do
local c = p.clients[idx]