Bug 468163

Summary: "Walk through windows" only switches between the current window and one other one
Product: [Plasma] kwin Reporter: Wen-Wei Kao <ltlnx>
Component: tabboxAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: ltlnx, nate, sourcework, spamless.9v5xj
Priority: NOR    
Version First Reported In: 5.27.3   
Target Milestone: ---   
Platform: Slackware   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=492958
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Wen-Wei Kao 2023-04-05 07:59:12 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
If the Alt-Tab window switching ("Walk through windows") is only mapped to one key (e.g. the function keys) from the shortcut settings, it only switches back and forth between the two windows most recently opened, instead of circling through all the windows. On the contrary, assigning "Walk through windows (reverse)" to one key correctly walks through all windows in reverse order.

STEPS TO REPRODUCE
1. In Settings → Shortcuts → KWin, assign a single key to "Walk through windows" (e.g. F3)
2. Apply and press the key

OBSERVED RESULT
It only switches between the most recently opened two windows.

EXPECTED RESULT
Pressing the key walks through all windows.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.27.3
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Please move this to the correct category if this is the wrong one. This is my first time reporting bugs and I chose it only based on the description :) Also I hope the summary doesn't come off as offending, I don't mean it.
Comment 1 Nate Graham 2023-04-05 15:28:22 UTC
Can reproduce. The issue is also seen when assigning any non-default shortcut to the action in the Shortcuts KCM, not just when it's a one-key shortcut.
Comment 2 spamless.9v5xj 2024-08-08 19:10:09 UTC
In my experimentation this bug can be observed even with the default Alt+Tab provided you press and release both keys. In order to trigger the cycle/walk the shortcut needs to involve a modifier key be it Meta, Ctrl, Alt and that you hold down said modifier key.

Related, but it'd be nice if the visualisation that shows all windows would pop up for a second so there's indication how many times I still need to mash the key to get to the window I want.
Comment 3 kderocks38 2024-12-13 15:56:18 UTC
*** Bug 492958 has been marked as a duplicate of this bug. ***