Bug 356381

Summary: Show desktop with eye On Screen effect cause to not render windows correctly when triggered to fast
Product: [Plasma] kwin Reporter: masterdany88
Component: effects-window-managementAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal Flags: thomas.luebking: ReviewRequest+
Priority: NOR    
Version First Reported In: 5.4.2   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
URL: https://git.reviewboard.kde.org/r/126277/
Latest Commit: Version Fixed/Implemented In: 5.5.1
Sentry Crash Report:

Description masterdany88 2015-12-08 05:37:44 UTC
I've activated Kwin effect called eye On Screen. I've deactivated Window Aperture effect.
Now When click on widget show desktop, or trigger showing desktop other way it trigger nice animation and show only desktop. Windows are hidden. It is ok. Problem become when i trigger this twice. once to start, and second while animation is still running.
I hides window, and I cannot display them again. I have to restart kwin effects (ctrl+F12).

Reproducible: Always

Steps to Reproduce:
1.Trigger eye On Screen effect
2.Trigger eye On Screen effect again while earlier animation of "eye on screen" is still running


Actual Results:  
I cannot see any window after that. No meter is maximalised or minimalised.

Expected Results:  
Windows should be visible after secon trigger of show desktop
Comment 1 Thomas Lübking 2015-12-08 12:12:55 UTC
Patch in https://git.reviewboard.kde.org/r/126277/ should hit 5.5.1, but it's a scripted effect, you can just patch the local file /usr/share/kwin/effects/kwin4_effect_eyeonscreen/contents/code/main.js
Comment 2 Thomas Lübking 2015-12-08 20:09:11 UTC
Git commit 86f2a71b9a7aadcaf241b4e599e8364756798057 by Thomas Lübking.
Committed on 08/12/2015 at 19:32.
Pushed by luebking into branch 'Plasma/5.5'.

ensure to cancel animation on p-re-invocation
FIXED-IN: 5.5.1
REVIEW: 126277

M  +4    -0    effects/eyeonscreen/package/contents/code/main.js

http://commits.kde.org/kwin/86f2a71b9a7aadcaf241b4e599e8364756798057