| Summary: | Sometimes two animation ids can be *not* unique | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | Marco Martin <notmart> |
| Component: | scripting | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | cpigat242 |
| Priority: | NOR | ||
| Version First Reported In: | git master | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | http://commits.kde.org/kwin/a9fad7396e30a380a27090538e7e66dec6984c52 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| Attachments: | prints that show the bug | ||
|
Description
Marco Martin
2016-03-04 13:45:18 UTC
Created attachment 97677 [details]
prints that show the bug
this patch prints out animation ids: it's possible to see the same id popping up multiple times
Git commit 595c5937c9a1e13bdeed2759034ed66d8c89d614 by Marco Martin. Committed on 04/03/2016 at 17:19. Pushed by mart into branch 'master'. use a global static for animation ids using stack adresses makes it possible (even tough not frequent) for two animations (onle just killed, one just created) to have the same id, causing scripts to be potentially really confused. this replaces the id with a global counter, and the "flying tooltips" bug is gone. REVIEW:127276 Related: bug 352254 M +2 -0 libkwineffects/anidata_p.h M +8 -4 libkwineffects/kwinanimationeffect.cpp http://commits.kde.org/kwin/595c5937c9a1e13bdeed2759034ed66d8c89d614 Git commit a9fad7396e30a380a27090538e7e66dec6984c52 by Martin Gräßlin, on behalf of Marco Martin. Committed on 23/03/2016 at 11:03. Pushed by graesslin into branch 'Plasma/5.6'. use a global static for animation ids using stack adresses makes it possible (even tough not frequent) for two animations (onle just killed, one just created) to have the same id, causing scripts to be potentially really confused. this replaces the id with a global counter, and the "flying tooltips" bug is gone. REVIEW:127276 Related: bug 352254 M +2 -0 libkwineffects/anidata_p.h M +8 -4 libkwineffects/kwinanimationeffect.cpp http://commits.kde.org/kwin/a9fad7396e30a380a27090538e7e66dec6984c52 |