Bug 489609

Summary: The current window gets affected by directional keys when switching windows with the help of ALT+TAB.
Product: [Plasma] kwin Reporter: Divyanshu <tandiv15.bansal>
Component: inputAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: cwo.kde
Priority: NOR    
Version: 6.1.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Divyanshu 2024-07-02 13:59:51 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
Let's assume we are watching a youtube video. Now I want to check my telegram and I ALT+TAB and use the directional keys to navigate to telegram. In this process, if I press the left directional key, the window selection moves left (cyclic) as well as the youtube video rewinds by 5 seconds. If I press the right directional key, the window selection moves right (cyclic) and the youtube video forwards by 5 seconds. Similar effect can be noticed on pressing up and down directional keys (volume up and down respectively).

STEPS TO REPRODUCE
1. Open 3 or more applications. One of them should have some visual or audio effect on pressing directional keys.
2. ALT+TAB and navigate using directional pad.
3. Release ALT+TAB when we have reached the desired application.

OBSERVED RESULT
The selected application is brought into focus along with the previously active application registering the key strokes resulting in abnormal behaviour.

EXPECTED RESULT
The selected application is brought into focus while the previous application should have no effect of directional keys.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux - 6.6.36-1-lts (64-bit)
(available in About System)
KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
Prior to the latest update of 6.1.1, this issue was not present and kwin worked as expected.
Comment 1 cwo 2024-07-02 14:12:31 UTC
Is this involving an application using XWayland?

Does it work properly if you go to "Legacy X11 App Support" in System Settings and set it to "Never"?

If so, this is the same issue as https://bugs.kde.org/show_bug.cgi?id=484992
Comment 2 Divyanshu 2024-07-02 14:15:50 UTC
(In reply to cwo from comment #1)
> Is this involving an application using XWayland?
> 
> Does it work properly if you go to "Legacy X11 App Support" in System
> Settings and set it to "Never"?
> 
> If so, this is the same issue as https://bugs.kde.org/show_bug.cgi?id=484992

Yes this seems to be the case. Sorry for the duplication I didn't know how to phrase this issue in the search and this didn't find it.
Comment 3 Divyanshu 2024-07-02 14:16:10 UTC

*** This bug has been marked as a duplicate of bug 484992 ***