Bug 321201

Summary: Fade Desktop effect takes place while fullscreen effect (desktop grid) is active
Product: [Plasma] kwin Reporter: Lukas <zavodny.lukas>
Component: effects-variousAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: leszek.lesner, pereira.alex
Priority: NOR    
Version First Reported In: 4.10.4   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In: 5.15.0
Sentry Crash Report:

Description Lukas 2013-06-16 02:17:40 UTC
When switching a desktop with Fade Desktop effect it looks like a clean workspace is showed immediatelly and then is appearing window on that workspace. In the final it makes bad-looking blinks. This problem is same in Desktop Grid with Fade Desktop. For better understanding you can decrease the animation speed to slow or very slow. Then it's more obvious.

Reproducible: Always
Comment 1 Lukas 2013-06-16 02:20:44 UTC
Just note: I am using nvidia drivers and this bug was in 4.9 too (and maybe 4.8)
Comment 2 Thomas Lübking 2013-06-16 11:17:33 UTC
- Is the behavior the same after
  * disabling color correction (bug #321218)
  * disabling OpenGL 2.0 shaders, resp. on the xrender backend?
- Do you use one activity per virtual desktop (ie. the plasma approach to have different wallpapers on different virtual desktops)?
Comment 3 Lukas 2013-06-16 11:42:20 UTC
Disabling color correction and/or opengl 2.0 shaders doesn't solve this. Xrender backend same issue too. I don't use any special activity. I had only one with wallpaper and widgets same for all workspaces. As I am testing differ settings now, it change behaviour to I know from older KDE versions...there is no desktop blink, but actull window from desktop I am switching. Not sure what makes this appears now. However when switching from empty workspace, there is classic wallpaper blink. I recorded it https://docs.google.com/file/d/0BxqgMBnbhgmKTnFQZlJwb2tJLUE/edit
Comment 4 Thomas Lübking 2013-06-16 12:07:23 UTC
Thanks for the video ;-)

I can briefly see that and it depends on the correlation of the animation duration in desktop grid as compared to the static time for the fade desktop effect 

(FYI: there many more different ways to trigger a desktop change and this effect should not be triggered while desktop grid is active)
Comment 5 Lukas 2013-06-16 12:15:05 UTC
I am glad to help. Just wondering that nobody reports this earlier. :)
Comment 6 Martin Flöser 2013-06-16 17:38:24 UTC
Finally a reason to add a fullscreenEffect property and a changed signal ;-)
Comment 7 Leszek Lesner 2017-09-15 10:46:24 UTC
This problem reoccured for at least KWin 5.10 (had 5.8.7 before where the problem did not happen [not tested kwin 5.9]). 
See example video: https://www.youtube.com/watch?v=L7UbJHe0p6c
Comment 8 Vlad Zahorodnii 2018-07-12 13:35:34 UTC
*** Bug 365930 has been marked as a duplicate of this bug. ***
Comment 9 David Edmundson 2018-10-10 11:33:12 UTC
Git commit b1b1360ec3fb0ddddcfed2d3db90985cf8495aa8 by David Edmundson.
Committed on 10/10/2018 at 11:32.
Pushed by davidedmundson into branch 'master'.

[effects/fadedesktop] Set animation as a fullscreen effect

Summary:
This lets other effects know whether they should inhibit or not which
reduces
visual glitches of overlapping animations.
FIXED-IN: 5.15.0

Test Plan: Switched desktops, they still faded

Reviewers: #kwin, zzag

Subscribers: zzag, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D15474

M  +18   -3    effects/fadedesktop/package/contents/code/main.js

https://commits.kde.org/kwin/b1b1360ec3fb0ddddcfed2d3db90985cf8495aa8