Bug 401462

Summary: When determining whether to activate or minimize a window by clicking on its TM button, consider its stacking order over its focus state
Product: [Plasma] plasmashell Reporter: Hannah Rittich <hannah.rittich>
Component: Task Manager and Icons-Only Task Manager widgetsAssignee: Eike Hein <hein>
Status: RESOLVED DUPLICATE    
Severity: wishlist CC: hannah.rittich, nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Hannah Rittich 2018-11-27 10:12:00 UTC
SUMMARY

Windows are minimized instead of raised when clicking on the corresponding button in the task manager.

The TaskManager and IconTask applets minimize the active window and raise inactive windows. I am using the "Focus Follow Mouse" feature. Thus, when I move the mouse cursor to the task manager to raise a window, it can happen that I activate the window by moving the cursor over it. Then, if I click on the corresponding button in the task manager, the window is minimized. 

STEPS TO REPRODUCE
1. Set the window manager to "focus follow mouse" and disable the automatic raising of windows.
2. Create at least two windows.
3. Place the first window above the second one to cover the second one partly.
4. Move your mouse cursor over the second window. (Without raising the window by clicking.)
5. Click in the task manager on the button of the second window.

OBSERVED RESULT

The second window is minimized.

EXPECTED RESULT

The second window should be raised and only minimized when the window is on top.

SOFTWARE/OS VERSIONS
Linux: Fedora 29
KDE Plasma Version: 5.14.3
Comment 1 Nate Graham 2018-11-27 21:02:32 UTC
So you're saying that a window should only be minimized when you click on its Task Manager entry if it's on top rather than just having focus?
Comment 2 Hannah Rittich 2018-11-29 21:53:31 UTC
I would prefer this behavior, yes.

I am not sure, though, if this choice would be everybody's preference. Thus, one could also provide an option in the configuration dialog.

Anyways, I would be happy to have that feature.
Comment 3 Nate Graham 2018-11-29 22:08:25 UTC
Thanks for confirmation!
Comment 4 Nate Graham 2020-08-21 19:28:45 UTC

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