https://bugs.kde.org/show_bug.cgi?id=454413

            Bug ID: 454413
           Summary: Transition from Alt+Tab to Alt+Grave without releasing
                    Alt unexpectedly switches windows
           Product: kwin
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: tabbox
          Assignee: kwin-bugs-n...@kde.org
          Reporter: redb...@redbearnet.com
  Target Milestone: ---

Alt+Tab and Alt+Grave shortcuts, when used separately by themselves, perform no
action until the Alt key is released. User can "cycle" through any number of
windows before releasing the Alt key with either shortcut. The chosen window is
finally raised only when the user releases the Alt key. Escape will cancel out
of the task switcher/action. 

Transitioning from Alt+Tab to Alt+Grave without releasing Alt currently
produces an immediate window raise/activation event, before Alt is released.
This is undesirable and contrary to the behavior of these shortcuts when used
separately. 

STEPS TO REPRODUCE
1. Open up at least two different applications, with at least two windows of
each app open. 

2. Change task switcher settings to clarify what is happening: 
    - Disable "Show selected window"
    - Visualization: "Large Icons"
    - Enable "Only one window per application"

3. Press Alt+Tab and release Tab, but keep Alt held down. 
    Result: 
    - The selected icon in the task switcher dialog is the "other" app that
doesn't have focus. 
    - No window of the other app has actually been activated/raised. 
    - As long as Alt is held down, the task switcher dialog remains visible. 
    - User can hit Tab any number of times, no window will be raised until Alt
is released. 

4. Still holding down the Alt key from previous step, now tap the Grave key
above Tab. Keep Alt held down. 
    Result: 
    - One window of the "other" app is immediately raised, even though Alt is
still held down. (Not normal or expected!)
    - Subsequent presses of Grave while holding Alt produce no action until Alt
is released. (Normal.)

5. Release Alt, then press Alt+Grave and hold Alt again. 
    Result: 
    - Task switcher dialog shows only the windows of the current "app". 
    - No window is raised/activated until the user releases Alt. 
    - Grave can be pressed many times prior to releasing Alt, without
performing an action. 
    - Window action results ONLY from releasing the Alt key. 


EXPECTED RESULT

When transitioning (without releasing Alt) between Alt+Tab (Tab pressed any
number of times), which produces no action until Alt is released, to Alt+Grave,
which also normally produces no final action until Alt is released, the
expected behavior is: 

- No window is immediately raised until Alt is released. 
- Task switcher dialog changes, as it normally does, from showing all windows
(or a single large icon for each "application" with "Large Icons" visualizer
and "Only one window per application" enabled) to showing just the
windows/thumbnails/icons of the application that was highlighted in the task
switcher after pressing Alt+Tab. 

Repeat: Alt+Tab to Alt+Grave without releasing Alt should result in the user
moving through representations in the task switcher of the application that had
an icon HIGHLIGHTED in the task switcher after the last Alt+Tab. 

User should be able to transition back and forth between Alt+Tab and Alt+Grave
as many times as they like, without any window raise/activation action ever
occurring until Alt is finally released. Or until they hit Escape to cancel the
task switcher dialog/action entirely. 


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Neon and Fedora 36 KDE spin
(available in About System)
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.4

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to