shell: Change fullscreen restore info on move
This commit is contained in:
parent
c1e5a3ee3d
commit
84f1d6b7a9
2 changed files with 28 additions and 4 deletions
|
|
@ -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>),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue