Bug 442649 - Minimize all Windows function does not work in some cases ( mostly ) ( Wayland )
Summary: Minimize all Windows function does not work in some cases ( mostly ) ( Wayland )
Status: RESOLVED DUPLICATE of bug 440751
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.22.90
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-18 12:19 UTC by Szymon
Modified: 2021-09-21 21:58 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Szymon 2021-09-18 12:19:12 UTC
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.
Comment 1 Vlad Zahorodnii 2021-09-20 11:41:17 UTC
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.
Comment 2 Szymon 2021-09-21 21:03:34 UTC
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.
Comment 3 Szymon 2021-09-21 21:27:41 UTC
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 ) .
Comment 4 Nate Graham 2021-09-21 21:58:33 UTC

*** This bug has been marked as a duplicate of bug 440751 ***