tiling: fix workspaces

This commit is contained in:
Victoria Brekenfeld 2022-03-29 13:24:35 +02:00
parent aab52b502c
commit 936356b312
4 changed files with 29 additions and 25 deletions

View file

@ -51,9 +51,9 @@ pub trait Layout {
}
}
pub fn new_default_layout() -> Box<dyn Layout> {
pub fn new_default_layout(idx: u8) -> Box<dyn Layout> {
Box::new(combined::Combined::new(
tiling::TilingLayout::new(),
tiling::TilingLayout::new(idx),
floating::FloatingLayout,
|app_id, title| {
slog_scope::debug!(