Centered layout for ultrawide screens (#200)

This commit is contained in:
Kasper 2023-02-22 09:52:34 +02:00 committed by GitHub
parent affc165bda
commit 4fc68f7c24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -16,9 +16,9 @@ function mylayout.arrange(p)
local slave_width = 0.5 * (area.width - master_area_width) local slave_width = 0.5 * (area.width - master_area_width)
local master_area_x = area.x + slave_width local master_area_x = area.x + slave_width
-- Special case: few slaves -> make masters take more space - unless requested otherwise! -- Special case: few slaves -> make masters take more space - unless requested otherwise!
if nslaves < 2 and t.master_fill_policy ~= "master_width_factor" then if nslaves < 2 and t.master_fill_policy ~= "master_width_factor" and
t.centered_layout_master_fill_policy ~= "master_width_factor" then
master_area_x = area.x master_area_x = area.x
if nslaves == 1 then if nslaves == 1 then