diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-02-11 15:35:06 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-02-15 13:28:57 +0300 |
| commit | fd8140e091df24e02de279b287d42b087eab19e2 (patch) | |
| tree | 94dc2b6970416f0f5349a84ab7159246ea8b07be /src/layout/floating.rs | |
| parent | d94fbe98952af12b639489f8bba70a4532a18a7b (diff) | |
| download | niri-fd8140e091df24e02de279b287d42b087eab19e2.tar.gz niri-fd8140e091df24e02de279b287d42b087eab19e2.tar.bz2 niri-fd8140e091df24e02de279b287d42b087eab19e2.zip | |
Hook up are_transitions_ongoing() for floating and tiles
Don't spoil it
Diffstat (limited to 'src/layout/floating.rs')
| -rw-r--r-- | src/layout/floating.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/layout/floating.rs b/src/layout/floating.rs index fef92309..2a4054bd 100644 --- a/src/layout/floating.rs +++ b/src/layout/floating.rs @@ -259,6 +259,10 @@ impl<W: LayoutElement> FloatingSpace<W> { self.tiles.iter().any(Tile::are_animations_ongoing) || !self.closing_windows.is_empty() } + pub fn are_transitions_ongoing(&self) -> bool { + self.tiles.iter().any(Tile::are_transitions_ongoing) || !self.closing_windows.is_empty() + } + pub fn update_render_elements(&mut self, is_active: bool, view_rect: Rectangle<f64, Logical>) { let active = self.active_window_id.clone(); for (tile, offset) in self.tiles_with_offsets_mut() { |
