[Task manager] Use Windows-style middle-click behaviors for entries and thumbnails
Summary:
The Windows 10 Task Manager equivalent opens a new instance when middle-clicking an
open Task, and when middle-clicking on a thumbnail in the pop-up, that task is closed.
These are some nice shortcuts. This patch implements the same behaviors for our Task
Manager.
Test Plan:
- Delete ~/.config/plasma-org.kde.plasma.desktop-appletsrc and restart plasmashell
- Open an app
- Middle-click on the app's Task -> see that a new instance is created
- Keep middle-clicking on the app's Task until it becomes grouped
- Move the mouse over the grouped task
- Middle-click on a thumbnail in the pop-up -> see how that instance is closed
Reviewers: Plasma, VDG, ndavis, hein
Reviewed By: Plasma, VDG, ndavis, hein
Subscribers: ndavis, plasma-devel
Tags: Plasma
Differential Revision: https://phabricator.kde.org/D21627