shell: Only clear tiling position on move

This commit is contained in:
Victoria Brekenfeld 2026-01-13 16:43:56 +01:00 committed by Jeremy Soller
parent 0116bc0dc2
commit 4adb07443a

View file

@ -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 {