From 20769b4c2f843566880f020f117e7bde36edc332 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Mon, 10 Feb 2025 14:12:54 +0300 Subject: tab indicator: Animate opening --- src/layout/floating.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/layout/floating.rs') 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 FloatingSpace { 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; -- cgit