aboutsummaryrefslogtreecommitdiff
path: root/src/layout/floating.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2025-02-11 15:35:06 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2025-02-15 13:28:57 +0300
commitfd8140e091df24e02de279b287d42b087eab19e2 (patch)
tree94dc2b6970416f0f5349a84ab7159246ea8b07be /src/layout/floating.rs
parentd94fbe98952af12b639489f8bba70a4532a18a7b (diff)
downloadniri-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.rs4
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() {