Bug 491287

Summary: Alt-tab is also sometimes sent to the app
Product: [Plasma] kwin Reporter: Sami Kyöstilä <sami.kyostila>
Component: tabboxAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: fanzhuyifan
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screen recording of the bug

Description Sami Kyöstilä 2024-08-05 04:28:43 UTC
Created attachment 172287 [details]
Screen recording of the bug

SUMMARY
When switching apps with Alt-Tab or Alt-Shift-Tab, those same input events are also sent to the application that was most recently focused. This doesn't seem to happen with all apps, but it happens every time with at least with Chrome (127.0.6533.72).

STEPS TO REPRODUCE
1. Open Chrome on any website with a bunch of links (e.g., https://en.wikipedia.org/wiki/Main_Page)
2. Hold down Alt and tap Tab to bring up the application switcher (while still keeping Alt pressed).
3. While holding down Alt, press Tab and Shift-Tab a few times.

OBSERVED RESULT
The focused link in Chrome updates at the same time as the application switcher changes between windows.

EXPECTED RESULT
Chrome shouldn't receive any of the Alt-Tab events.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Neon testing
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.5.0 
Qt Version: 6.7.2

ADDITIONAL INFORMATION
Screen recording attached.
Comment 1 fanzhuyifan 2024-08-05 04:51:40 UTC

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