mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07:00
layout: Check move output in are_animations_ongoing()
This commit is contained in:
+5
-2
@@ -2535,8 +2535,11 @@ impl<W: LayoutElement> Layout<W> {
|
||||
|
||||
pub fn are_animations_ongoing(&self, output: Option<&Output>) -> bool {
|
||||
if let Some(InteractiveMoveState::Moving(move_)) = &self.interactive_move {
|
||||
if move_.tile.are_animations_ongoing() {
|
||||
return true;
|
||||
#[allow(clippy::collapsible_if)]
|
||||
if output.map_or(true, |output| *output == move_.output) {
|
||||
if move_.tile.are_animations_ongoing() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user