diff --git a/layout/centered.lua b/layout/centered.lua index 7929dd8..4d244d7 100644 --- a/layout/centered.lua +++ b/layout/centered.lua @@ -16,9 +16,9 @@ function mylayout.arrange(p) local slave_width = 0.5 * (area.width - master_area_width) local master_area_x = area.x + slave_width - -- 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 if nslaves == 1 then