diff options
| author | elkowar <dev@elkowar.dev> | 2024-08-29 16:41:59 +0200 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-09-05 01:01:41 -0700 |
| commit | fd8ebb9d06ee6012b948042da794a0104096549e (patch) | |
| tree | f007a772732e0e6f69d95ac7101d21e97576c78e /src/layout/mod.rs | |
| parent | 952916fd1c61ebd61e7b40211d97fdd0c15e85d1 (diff) | |
| download | niri-fd8ebb9d06ee6012b948042da794a0104096549e.tar.gz niri-fd8ebb9d06ee6012b948042da794a0104096549e.tar.bz2 niri-fd8ebb9d06ee6012b948042da794a0104096549e.zip | |
implement always_center_single_column layout option
Diffstat (limited to 'src/layout/mod.rs')
| -rw-r--r-- | src/layout/mod.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs index 734512dd..fd1c5f7e 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -236,6 +236,7 @@ pub struct Options { pub focus_ring: niri_config::FocusRing, pub border: niri_config::Border, pub center_focused_column: CenterFocusedColumn, + pub always_center_single_column: bool, /// Column widths that `toggle_width()` switches between. pub preset_widths: Vec<ColumnWidth>, /// Initial width for new columns. @@ -255,6 +256,7 @@ impl Default for Options { focus_ring: Default::default(), border: Default::default(), center_focused_column: Default::default(), + always_center_single_column: false, preset_widths: vec