Bug 488141

Summary: Plasma Desktop Task Switcher Has Unexpected Behavior when Filter is set to Minimised Windows
Product: [Plasma] kwin Reporter: m1vri31c
Component: tabboxAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: minor CC: kde, nate
Priority: NOR Keywords: usability
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: NixOS   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description m1vri31c 2024-06-07 06:07:39 UTC
SUMMARY
When the task switcher is filtered to only go between minimised windows, it will go to the "next" minimised window despite the previous minimised window never having been activated. This is unintuitive since if your sort order is set to recently used you would expect it to summon the most recently minimised window. 

I assume this behavior is due to filtering for minimised windows only making your most recently minimised window the "active" window to switch FROM instead of TO.

STEPS TO REPRODUCE
1. Set main or alternative Task Switcher to Filter windows by Minimization > Hidden windows, so your task switcher becomes a way to easily unminimise a specific minimised window using keyboard shortcuts.
2. Set Sort order in your Task Switcher to Recently Used
3. Minimise at least 2 windows
4. Use Task Switcher keyboard shortcut exactly once

OBSERVED RESULT
The second most recently minimised window will unminimise

EXPECTED RESULT
The most recently minimised window unminimises. 

SOFTWARE/OS VERSIONS
NixOS 24.11 (unstable channel)
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.2.0 
Qt Version: 6.7.1