Merge lp:~sjakthol/compiz/fix-1098185 into lp:compiz/0.9.9
Status: | Merged |
---|---|
Approved by: | Brandon Schaefer |
Approved revision: | 3555 |
Merged at revision: | 3561 |
Proposed branch: | lp:~sjakthol/compiz/fix-1098185 |
Merge into: | lp:compiz/0.9.9 |
Diff against target: |
11 lines (+1/-1) 1 file modified
plugins/animation/src/animation.cpp (+1/-1) |
To merge this branch: | bzr merge lp:~sjakthol/compiz/fix-1098185 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brandon Schaefer (community) | Approve | ||
Sam Spilsbury | Approve | ||
PS Jenkins bot | continuous-integration | Pending | |
Review via email: mp+142848@code.launchpad.net |
Commit message
Animation: Correctly specify the events an effect can be used with.
If AnimEffectUsedF
be used with ALL events instead of NONE. This causes crashes if the
chosen random effect is not compatible with the triggering event.
For example dodge effect as random minimize animation causes segfault
as it's only supposed to be a focus in/out animation.
Description of the change
Test case:
1. In CCSM -> Animations -> Minimize animation choose Random and make sure none of the effects in Random events pool is not selected.
2. Minimize a window, restore it and repeat
Without the fix:
- Compiz segfaults when incompatible animation is chosen
With the fix:
- No segfaults as incompatible animations are not chosen
Great catch, thanks.