Bug 405657

Summary: New option for QML TasksModel: "filterTransients"
Product: [Plasma] plasmashell Reporter: Michail Vourlakos <mvourlakos>
Component: Task Manager and Icons-Only Task Manager widgetsAssignee: Eike Hein <hein>
Status: CONFIRMED ---    
Severity: wishlist CC: nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.15.3   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Michail Vourlakos 2019-03-19 19:09:13 UTC
SUMMARY

TaskManager.TasksModel by use-case decision excludes all windows that do have the flag "SkipTaskBar" and that creates a limit to its usage from plasma applets. Last years many kde developers have adopted TaskManager.TasksModel in order to provide window-specific functionality from applets. But because of "SkipTaskBar" filtering some windows can not be accessed and more specific the all important normal windows that are transients for main windows.

Applets example:
https://store.kde.org/p/1274218/
https://store.kde.org/search/projectSearchText/window%20buttons

These applets currently can not provide functionality or information for the transient windows.

What I propose is a new flag for TasksModel called "filterTransients" which is going to be ENABLED by default but will give the option to kde developers to DISABLE it in order to gain access to transients.

I dont know if this is even possible in current plasma wayland infrastructure or it will influence the main use case which is the taskmanager but I want to open the discussion in order to get ideas. 

Of course I can help a bit for developing some parts of it.
Comment 1 Eike Hein 2019-03-19 20:07:58 UTC
This seems OK to me. Feel free to write a patch.
Comment 2 Michail Vourlakos 2019-03-30 17:57:37 UTC
(In reply to Eike Hein from comment #1)
> This seems OK to me. Feel free to write a patch.

I tried but it is harder than it sounds... :(
filtering transients goes down to xwindowtaskmodel and waylandtaskmodel, this is a big change for this model I think...

but I will give it one more shot the next days