Bug 492272

Summary: Incorrect keypresses pased trough to some applications with Alt+Tab+Tab+...
Product: [Plasma] kwin Reporter: contact
Component: tabboxAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: duha.bugs
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description contact 2024-08-27 14:31:46 UTC
SUMMARY
When pressing Alt+Tab+Tab multiple times to switch between more than two Windows and switching form either Godot and Vscodium, incorrect input events will be passed to these applications, generating undesired indents.

STEPS TO REPRODUCE
Godot:
1. Open two Windows
2. Create a new blank Project
3. Create a new script file using the file explorer in the bottom left window and and clicking the Create Button on the Popup. 
4. Open the Script file (Double Click)
5. Hold The alt key while pressing Tab Multiple Times to switch to a different Window
6. Go Back to Godot
OBSERVED: There is now an unwanted indentation.

Vscodium:
1. open multiple windows
2. create a new script file: test.py
3. open the file using VsCodeium
4. Hold The alt key while pressing Tab Multiple Times to switch to a different Window
5. go back to vscodium
OBSERVED: There is now an unwanted indentation.

SOFTWARE/OS VERSIONS
Operating System: NixOS 24.11
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.6 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7840HS w/ Radeon 780M Graphics
Memory: 30.7 GiB of RAM
Graphics Processor: AMD Radeon 780M
Manufacturer: Framework
Product Name: Laptop 16 (AMD Ryzen 7040 Series)
System Version: AG

ADDITIONAL INFO:
not reproducible with Kate
Testes this in many other applications (Blender, Element Desktop, Firefox, Telegram, blender, System Settings ...) and these two Apps seem to be outliers.

I created a [bug in the godot git](https://github.com/godotengine/godot/issues/96006) because i first did not manage to find a single other application with the same issue until I realized it also happens with vscodium.
Comment 1 duha.bugs 2024-08-27 14:47:03 UTC
This will be fixed with plasma 6.2.

As a workaround you can set the the legacy X11 global shortcuts to never.

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