diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-02-10 14:12:54 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-02-10 07:29:33 -0800 |
| commit | 20769b4c2f843566880f020f117e7bde36edc332 (patch) | |
| tree | 5c8270c86caa7fe8d284c30ec377e5f2e916d76b /src/layout/floating.rs | |
| parent | 14ac2cff4cafb2e4df74d2194eaeb1664b33c831 (diff) | |
| download | niri-20769b4c2f843566880f020f117e7bde36edc332.tar.gz niri-20769b4c2f843566880f020f117e7bde36edc332.tar.bz2 niri-20769b4c2f843566880f020f117e7bde36edc332.zip | |
tab indicator: Animate opening
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; |
