Skip to content

effects/highlightwindow: Fix crash

Vlad Zahorodnii requested to merge work/zzag/highlight-window-complete into master

If a window appears on the screen, the highlight window effect will try to fast-forward animation to the target state by setting the animation duration to 0. However, TimeLine doesn't like that because it will eventually lead to division by zero.

This change makes the highlight window effect fast-forward the transition to highlight or ghost state by using the complete() function.

BUG: 450323

Merge request reports