I executed the testcase with the proposed version and it worked fine.
1) I activated showdesktop 2) I switched to another desktop 3) I switched back to the same desktop
Result: 1) Invisible windows were not "activated", the desktop was active
I executed the testcase with the proposed version and it worked fine.
1) I activated showdesktop
2) I switched to another desktop
3) I switched back to the same desktop
Result:
1) Invisible windows were not "activated", the desktop was active