diff --git a/src/shell/mod.rs b/src/shell/mod.rs index 47632dc0..e2809861 100644 --- a/src/shell/mod.rs +++ b/src/shell/mod.rs @@ -3134,8 +3134,8 @@ impl Shell { toplevel_enter_workspace(window, to); // we can't restore to a given position - if let WorkspaceRestoreData::Tiling(state) = &mut window_state { - state.take(); + if let WorkspaceRestoreData::Tiling(Some(state)) = &mut window_state { + state.state.take(); } // update fullscreen state to restore to the new workspace if let WorkspaceRestoreData::Fullscreen(Some(FullscreenRestoreData {