diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2023-12-21 08:37:30 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2023-12-21 08:37:30 +0400 |
| commit | 5b1de86d336f7d617f98048fe4318061320d6a29 (patch) | |
| tree | b5d7fe08adc23c0715569a07581f34493d8086f6 /src/layout.rs | |
| parent | 58162ce685c487597cc097fe878650a17415a63b (diff) | |
| download | niri-5b1de86d336f7d617f98048fe4318061320d6a29.tar.gz niri-5b1de86d336f7d617f98048fe4318061320d6a29.tar.bz2 niri-5b1de86d336f7d617f98048fe4318061320d6a29.zip | |
Add configurable struts
Diffstat (limited to 'src/layout.rs')
| -rw-r--r-- | src/layout.rs | 42 |
1 files changed, 38 insertions, 4 deletions
diff --git a/src/layout.rs b/src/layout.rs index b53529f5..bf012311 100644 --- a/src/layout.rs +++ b/src/layout.rs @@ -56,7 +56,7 @@ use smithay::wayland::compositor::{send_surface_state, with_states}; use smithay::wayland::shell::xdg::SurfaceCachedState; use crate::animation::Animation; -use crate::config::{self, Color, Config, PresetWidth, SizeChange}; +use crate::config::{self, Color, Config, PresetWidth, SizeChange, Struts}; #[derive(Debug, Clone, PartialEq, Eq)] pub struct OutputId(String); @@ -205,6 +205,8 @@ struct FocusRing { struct Options { /// Padding around windows in logical pixels. gaps: i32, + /// Extra padding around the working area in logical pixels. + struts: Struts, focus_ring: config::FocusRing, /// Column widths that `toggle_width()` switches between. preset_widths: Vec<ColumnWidth>, @@ -216,6 +218,7 @@ impl Default for Options { fn default() -> Self { Self { gaps: 16, + struts: Default::default(), focus_ring: Default::default(), preset_widths: vec