shell/tiling: Make gaps configurable

This commit is contained in:
Victoria Brekenfeld 2023-03-09 18:27:29 +01:00
parent 4bf2c8df79
commit b53e5cae6e
4 changed files with 53 additions and 17 deletions

View file

@ -63,9 +63,9 @@ pub enum ManagedState {
}
impl Workspace {
pub fn new(handle: WorkspaceHandle, tiling_enabled: bool) -> Workspace {
pub fn new(handle: WorkspaceHandle, tiling_enabled: bool, gaps: (u8, u8)) -> Workspace {
Workspace {
tiling_layer: TilingLayout::new(),
tiling_layer: TilingLayout::new(gaps),
floating_layer: FloatingLayout::new(),
tiling_enabled,
fullscreen: HashMap::new(),