From fb93038bd88e4443015fb482de3450c27f009219 Mon Sep 17 00:00:00 2001 From: Thomas Versteeg Date: Mon, 8 Jan 2024 17:17:19 +0400 Subject: Add center-focused-column setting --- src/layout/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/layout/mod.rs') diff --git a/src/layout/mod.rs b/src/layout/mod.rs index 69d78676..c18fe6b5 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -139,6 +139,7 @@ pub struct Options { struts: Struts, focus_ring: niri_config::FocusRing, border: niri_config::FocusRing, + center_focused_column: niri_config::CenterFocusedColumn, /// Column widths that `toggle_width()` switches between. preset_widths: Vec, /// Initial width for new columns. @@ -152,6 +153,7 @@ impl Default for Options { struts: Default::default(), focus_ring: Default::default(), border: niri_config::default_border(), + center_focused_column: Default::default(), preset_widths: vec![ ColumnWidth::Proportion(1. / 3.), ColumnWidth::Proportion(0.5), @@ -190,6 +192,7 @@ impl Options { struts: layout.struts, focus_ring: layout.focus_ring, border: layout.border, + center_focused_column: layout.center_focused_column, preset_widths, default_width, } -- cgit