From 4fc68f7c24f6eb7d9ce96d15da098a4b04b162e1 Mon Sep 17 00:00:00 2001 From: Kasper Date: Wed, 22 Feb 2023 09:52:34 +0200 Subject: [PATCH] Centered layout for ultrawide screens (#200) --- layout/centered.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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