shell: Change fullscreen restore info on move

This commit is contained in:
Victoria Brekenfeld 2025-11-12 18:11:59 +01:00 committed by Jeremy Soller
parent c1e5a3ee3d
commit 84f1d6b7a9
2 changed files with 28 additions and 4 deletions

View file

@ -253,6 +253,16 @@ pub enum FullscreenRestoreState {
},
}
impl FullscreenRestoreState {
pub fn was_maximized(&self) -> bool {
match self {
FullscreenRestoreState::Floating { state, .. }
| FullscreenRestoreState::Sticky { state, .. } => state.was_maximized,
FullscreenRestoreState::Tiling { state, .. } => state.was_maximized,
}
}
}
#[derive(Debug, Clone)]
pub enum WorkspaceRestoreData {
Fullscreen(Option<FullscreenRestoreData>),