[kwineffects] Don't crash when cancel animation from animationEnded

Review Request #126975 - Created Feb. 3, 2016 and submitted

Information
Martin Flöser
kwin
master
Reviewers
kwin
luebking, mart
Canceling the animation in the animationEnded handler triggers a crash.
This is due to multiple lists being iterated and manipulated at the same
time.

This change introduces a new ended attribute in AniData which is set to
true directly before calling into animationEnded. In cancel the cleanup
is not operated if this attribute is true.

A test case is added which simulates the crashy situation.

  
Marco Martin
Thomas Lübking
Martin Flöser
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit cc8b3a5a96efa6f6156d216d2bea56275cd4ecad by Martin Gräßlin to branch master.
Loading...