Bug 366732

Summary: Clicking active task doesn't minimize window when window housing delegate takes focus on mouse press (desktop, group popup)
Product: [Plasma] plasmashell Reporter: Alexandre Pereira <pereira.alex>
Component: Task Manager and Icons-Only Task ManagerAssignee: Eike Hein <hein>
Status: RESOLVED FIXED    
Severity: normal CC: cfeck, nate, plasma-bugs
Priority: NOR    
Version: 5.7.3   
Target Milestone: 1.0   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description Alexandre Pereira 2016-08-13 13:20:44 UTC
Hi,

When taskmanager is on a panel, if you left click on a running application, it will minimize/restore that window. Oddly, when the taskmanager is put outside of the panel ( like on the desktop main area ), that functuality no longer works.

Reproducible: Always

Steps to Reproduce:
1.Put taskmanager outside of the panel, like a desktop plasmoid
2.Open an application
3.Try to minimize/restore it like when taskmanager is on panel
Comment 1 Eike Hein 2016-08-23 18:47:58 UTC
Can reproduce.
Comment 2 Eike Hein 2016-08-23 19:30:03 UTC
That's because the window loses its "IsActive" status as the desktop gains focus due to the mouse button press, unlike a panel which never grabs focus. Since the initial click on a task in a panel usually gives it focus, the minimize toggle codepath is only run when the window is active, and otherwise the activate codepath runs (both on mouse button release, i.e. completed click). Not quite sure what to do about this one yet.
Comment 3 Alexandre Pereira 2016-08-23 22:52:49 UTC
Well, my use case is to have some taskmanagers with different launchers on each activity. ( kinda simulating various docks like plank and docky for each activity ).

It would be handy for that. Also althought there is the configuration of taskmanager for middle click action to minimize/restore, I would love to keep middle mouse for "new instance" and double clicking for minimize/restore.

Thanks.
Comment 4 Eike Hein 2016-09-21 17:57:07 UTC
*** Bug 368459 has been marked as a duplicate of this bug. ***
Comment 5 Nate Graham 2020-07-12 04:28:56 UTC
This is fixed now.