Bug 439242

Summary: Window switching when filtering windows by minimized, hidden windows and ordered by recently used behaves unpredictably
Product: [Plasma] kwin Reporter: bees.json
Component: tabboxAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: kde.org, nate
Priority: NOR Keywords: usability
Version: 5.22.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description bees.json 2021-06-28 00:37:59 UTC
SUMMARY

If using the "recently used" sort order, pressing Alt+Tab will switch to the last used window. If the "Hidden" option under "Minimization" under "Filter Windows by" is checked, pressing Alt+Tab switches windows unpredictably.

Switching between minimized windows differs from the switching behavior when not filtering windows by minimization. The steps below may be repeated with only "Recently used" sort order set and the "Minimization" filter unchecked, and the expected behavior is observed.


STEPS TO REPRODUCE
1. System Settings > Task Switcher
2. Set sort order to "Recently used"
3. Check "Hidden windows" under "Minimization"
4. Apply settings
5. Open two windows: A and B
6. Focus and then minimize windows A and B, in that order; B is now the MRU (most recently used) window
7. Press Alt+Tab once to restore a window.

OBSERVED RESULT

Window restored by Alt+Tab is A

EXPECTED RESULT

Window restored by Alt+Tab is B, the MRU window.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.22.1
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.2
Kernel Version: 5.12.11-zen1-1-zen (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-4790K CPU @ 4.00GHz
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4600
Comment 1 kde.org 2021-11-06 14:19:17 UTC
KDE 5.22.5, I can confirm the described behavior.