diff options
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