shell: Return surface from take_fullscreen for symmetry with remove_fullscreen

This commit is contained in:
Ilia Malanin 2026-03-13 22:19:09 +01:00 committed by Victoria Brekenfeld
parent 07d584dadd
commit 06ece0fdcd
2 changed files with 7 additions and 2 deletions

View file

@ -1239,6 +1239,7 @@ impl Workspace {
pub fn take_fullscreen(
&mut self,
) -> Option<(
CosmicSurface,
Option<FullscreenRestoreState>,
Option<Rectangle<i32, Local>>,
)> {
@ -1248,7 +1249,11 @@ impl Workspace {
focus_stack.retain(|t| t != &surface.surface);
}
Some((surface.previous_state, surface.previous_geometry))
Some((
surface.surface,
surface.previous_state,
surface.previous_geometry,
))
}
#[must_use]