Bug 366732 - Clicking active task doesn't minimize window when window housing delegate takes focus on mouse press (desktop, group popup)
Summary: Clicking active task doesn't minimize window when window housing delegate tak...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager (show other bugs)
Version: 5.7.3
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-13 13:20 UTC by Alexandre Pereira
Modified: 2020-07-12 04:28 UTC (History)
3 users (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 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.