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/workspace.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/workspace.rs')
| -rw-r--r-- | src/layout/workspace.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/layout/workspace.rs b/src/layout/workspace.rs index 25d2bb80..a402ad44 100644 --- a/src/layout/workspace.rs +++ b/src/layout/workspace.rs @@ -1474,6 +1474,10 @@ impl<W: LayoutElement> Workspace<W> { .start_close_animation_for_tile(renderer, snapshot, tile_size, tile_pos, blocker); } + pub fn start_open_animation(&mut self, id: &W::Id) -> bool { + self.scrolling.start_open_animation(id) || self.floating.start_open_animation(id) + } + pub fn window_under(&self, pos: Point<f64, Logical>) -> Option<(&W, HitType)> { // This logic is consistent with tiles_with_render_positions(). if self.is_floating_visible() { |
