Warn about ignored transitions which can't be rooted.

This commit is contained in:
Josh Matthews 2017-04-10 17:53:46 +10:00
parent 9134918844
commit 2ca80a800f

View file

@ -115,11 +115,15 @@ pub fn update_animation_state(constellation_chan: &IpcSender<ConstellationMsg>,
// Add new running animations. // Add new running animations.
for new_running_animation in new_running_animations { for new_running_animation in new_running_animations {
match newly_transitioning_nodes { if new_running_animation.is_transition() {
Some(ref mut nodes) if new_running_animation.is_transition() => { match newly_transitioning_nodes {
nodes.push(new_running_animation.node().to_untrusted_node_address()); Some(ref mut nodes) => {
nodes.push(new_running_animation.node().to_untrusted_node_address());
}
None => {
warn!("New transition encountered from compositor-initiated layout.");
}
} }
_ => ()
} }
running_animations.entry(*new_running_animation.node()) running_animations.entry(*new_running_animation.node())