Extracted from Bug #158262 Kwin fade effect is being applied for minimized windows, what cause minimized window to appear before closing. Reproducible: Always Steps to Reproduce: 1. Open any window 2. Minimize it 3. Close it by using the right click menu on the task bar item Actual Results: Minimized window will appear on the desktop before being closed. Expected Results: Window should not appear on the desktop if it was minimized.
Created attachment 72669 [details] Example video
Found the reason and I rather doubt that it worked before. When the windowClosed signal is emitted the EffectWindow belongs already to the Deleted instance, but the minimized property has not been copied over to the Deleted, thus evaluating to false when trying to access it, thus breaking all checks whether the window should be animated.
Git commit fa2e7c4348fc052c65d0fe96eced5650b6da88fb by Martin Gräßlin. Committed on 21/07/2012 at 18:09. Pushed by graesslin into branch 'KDE/4.9'. Pass property minimized from Client to Deleted Ensures that we can access the minimized property in Effects which want to not animate a closed, minimized window. Make use of it in the Fade Effect Script to not fade out a minimized window which would mean showing the actual not visible window. FIXED-IN: 4.9.0 REVIEW: 105647 M +2 -0 kwin/deleted.cpp M +5 -0 kwin/deleted.h M +1 -1 kwin/effects/fade/package/contents/code/main.js http://commits.kde.org/kde-workspace/fa2e7c4348fc052c65d0fe96eced5650b6da88fb
Thank you. Think this bug wasn't noticeable before, because of the bug from where this one has been extracted.