SUMMARY : When we change the options "Show Desktop" to "Minimize all Windows" another problem occurs ( Wayland only ) . Depending on what application is active ( window ) this function works as expected. But when we reshuffle the windows activity , there is a problem. STEPS TO REPRODUCE : 1. Launch the Dolphin and Kate applications. 2. Make sure that the windows are visible on your screen. And then remember which window was active. 3. Use the Minimize all Windows function twice via shortcut or applet. 4. If the windows are still active the second time, change the windows activity to the other application and use the function twice again. OBSERVED RESULT : The windows hide, but after clicking again they do not show up. They are still hidden and this function does not work until we manually restore the windows one by one. EXPECTED RESULT : The windows should be restored from hiding. No matter the number or type. SOFTWARE/OS VERSIONS Linux/KDE Plasma: 5.14.5 (available in About System) KDE Plasma Version: 5.22.90 KDE Frameworks Version: 5.86.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION : I am not quite sure if the function error itself occurs only when using it , or for other reasons. However, if the problem does not appear, please use more applications, and change their activity, surely it will appear. The problem also occurs on stable versions of KDE, a long time.
This looks like a bug caused by the same issue as https://bugs.kde.org/show_bug.cgi?id=440751 Minimize All script sets a boolean flag on each window to remember whether it's minimized by the script. QJSEngine seems to strip away those properties sometimes.
ok, i know what is wrong. The function works on the last started application. For example, if you turn on kate first and then dolphin. And on the active dolphin window you can use the functions without any problem. When you change activity to kate then the function will hide the popups but will not restore them. To sum up, the function works correctly only on the last opened application (window). The problem always occurs with this combination. By turning on more applications, the previous one that was compatible with the function stops working. Rule of last run.
Example : Kata -> Dolphin -> Chromium -> Terminal. The last application is a terminal, if the window activity indicates this application, the function works correctly with other windows in the background. If we switch the activity to, for example, Chromium, the function stops working properly. But if the terminal is minimized sooner, the Chromium becomes "correct". And when the activity of the popup indicates chromium, it works fine with other applications in the background. To sum up: each newly turned on application is subject to the activity of itself or the next one. Only then does the function work ( Wow ) .
*** This bug has been marked as a duplicate of bug 440751 ***