shell: Properly propagate tiling state

This commit is contained in:
Victoria Brekenfeld 2023-01-27 13:26:28 +01:00
parent 037a210c90
commit 5a8840b12e
4 changed files with 62 additions and 20 deletions

View file

@ -61,11 +61,11 @@ pub enum ManagedState {
}
impl Workspace {
pub fn new(handle: WorkspaceHandle) -> Workspace {
pub fn new(handle: WorkspaceHandle, tiling_enabled: bool) -> Workspace {
Workspace {
tiling_layer: TilingLayout::new(),
floating_layer: FloatingLayout::new(),
tiling_enabled: true,
tiling_enabled,
fullscreen: HashMap::new(),
handle,
focus_stack: FocusStacks::default(),