diff options
Diffstat (limited to 'src/layout/floating.rs')
| -rw-r--r-- | src/layout/floating.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/layout/floating.rs b/src/layout/floating.rs index 342663ac..fef92309 100644 --- a/src/layout/floating.rs +++ b/src/layout/floating.rs @@ -641,6 +641,15 @@ impl<W: LayoutElement> FloatingSpace<W> { self.interactive_resize_end(Some(&id)); } + pub fn start_open_animation(&mut self, id: &W::Id) -> bool { + let Some(idx) = self.idx_of(id) else { + return false; + }; + + self.tiles[idx].start_open_animation(); + true + } + pub fn toggle_window_height(&mut self, id: Option<&W::Id>) { let Some(id) = id.or(self.active_window_id.as_ref()).cloned() else { return; |
