Bug 411231 - "Walk through Windows of Current Application" just switches between two of them when not using any modifier keys in the shortcut
Summary: "Walk through Windows of Current Application" just switches between two of th...
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.12.8
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-24 02:32 UTC by Rickard Westman
Modified: 2019-08-24 22:20 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rickard Westman 2019-08-24 02:32:23 UTC
SUMMARY

After binding shortcut keys to "Walk through Windows of Current Application" and "Walk through Windows of Current Application (reverse)", only the latter works as expected (i.e. it walks through all the windows of the current application).  The normal/forward version of the shortcut instead toggles between two of the windows, never reaching the others.


STEPS TO REPRODUCE

1. Ensure there are 4 Konsole windows (opened individually from the launcher) on the current desktop.

2. Bind keys in "Global Keyboard Shortcuts / System Settings" for the actions "Walk through Windows of Current Application" and "Walk through Windows of Current Application (reverse)".

3. Use the key for "Walk through Windows of Current Application (reverse)" repeatedly and notice how it cycles through all four windows as expected.

4. Use the key for "Walk through Windows of Current Application" repeatedly and notice how it only moves between two of the four windows.


OBSERVED RESULT

"Walk through Windows of Current Application" toggles between two windows whereas "Walk through Windows of Current Application (reverse)" walks through all four windows.


EXPECTED RESULT

I expected "Walk through Windows of Current Application" and "Walk through Windows of Current Application (reverse)" to walk through all four windows, but in the reverse order of each other.


SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Kubuntu 18.04

KDE Plasma Version: 5.12.8

KDE Frameworks Version: 5.44.0

Qt Version: 5.9.5
Comment 1 Nate Graham 2019-08-24 13:36:03 UTC
I believe this is the expected behavior if you quickly press and release alt-tilde (the default shortcut). However if you keep the alt key held down and then repeatedly press and release the tilde key, then you should be presented with a switcher UI that allows you to choose the desired window.

Can you confirm whether this works?

(Obviously if you have customized the keyboard shortcut to some other modifier+key combination, use that instead)
Comment 2 Rickard Westman 2019-08-24 14:56:03 UTC
I had the two actions bound to function keys without a modifier, and then it worked in the weird asymmetric way I described.  It doesn't matter if it's a brief key press or a long one - a long one for the forward cycle will just flicker quickly between two of the windows. 

With the Alt modifier added to the forward binding, it works as you describe.  But when the Alt modifier is added to the backward binding, there is now another weird asymmetry: I can walk through the windows in the forward direction with the Alt key down, but for the backward direction I have to lift the Alt key between every step, otherwise it's just stuck on one window.

So it only works sensibly when the forward key binding has an Alt modifier, and the reverse binding doesn't.  Whether you use Alt modifiers for both, or for none, the user experience is bad.  I think it would be much better if the actions simply did the thing their name says, with the reverse action doing exactly the same thing as the forward action but in reverse.  An action to toggle between the last two windows might be nice, but there is nothing in the action name suggesting this function.  And the name absolutely doesn't say that this is the *only* thing the action can do unless you bind it with an Alt modifier.
Comment 3 Nate Graham 2019-08-24 19:38:15 UTC
Thanks, confirmed.
Comment 4 Vlad Zahorodnii 2019-08-24 22:17:35 UTC
You need to use "stacking order" sort mode.

Though in that case you'll hit bug 411231.
Comment 5 Nate Graham 2019-08-24 22:19:13 UTC
Did you mean to paste a different bug number?
Comment 6 Vlad Zahorodnii 2019-08-24 22:20:19 UTC
(In reply to Nate Graham from comment #5)
> Did you mean to paste a different bug number?
Yeah, sorry. bug 410594