Bug 489325 - If an XWayland window is focused with any key snooping setting other than "Never", pressing Alt+Tab sends tab keypresses to it
Summary: If an XWayland window is focused with any key snooping setting other than "Ne...
Status: RESOLVED DUPLICATE of bug 484992
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 6.1.0
Platform: Fedora RPMs Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2024-06-27 16:38 UTC by srikarbharadwaj0
Modified: 2024-09-20 01:52 UTC (History)
7 users (show)

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


Attachments
GIF of the Bug (3.74 MB, image/gif)
2024-06-27 16:38 UTC, srikarbharadwaj0
Details

Note You need to log in before you can comment on or make changes to this bug.
Description srikarbharadwaj0 2024-06-27 16:38:45 UTC
Created attachment 171094 [details]
GIF of the Bug

SUMMARY
When Alt+Tab is pressed, the current window doesn't get out of focus and when Alt+tab+tab is pressed, one tab will be registered on the current window. If tab is pressed N times with Alt key, the current window will register N-1 times of tabs.

STEPS TO REPRODUCE (Please find the attached GIF)
1. Open 3–4 applications
2. If one application is a text editor, place the cursor in between text, and press Alt+tab, without leaving the Alt key. 

EXPECTED RESULT
The current window should immediately get out of focus when Alt+tab is pressed. 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 40
KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1
Kernel Version: 6.8.11-300.fc40.x86_64 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
I tested with different Windows activation policy and visualization options, the bug remained consistent.
I observed this bug after updating from Fedora 39 to 40.
Comment 1 Nate Graham 2024-06-27 19:26:27 UTC
Can reproduce in XWayland apps only.

If I turn off key snooping in the XWayland app permission KCM, the issue goes away. But any higher setting will trigger the bug. Looks like changing the default value exposed this bug, which may have been pre-existing.
Comment 2 Nate Graham 2024-06-29 17:54:30 UTC

*** This bug has been marked as a duplicate of bug 484992 ***
Comment 3 Nate Graham 2024-08-22 14:50:32 UTC
*** Bug 492037 has been marked as a duplicate of this bug. ***
Comment 4 Nate Graham 2024-08-27 20:01:26 UTC
*** Bug 492116 has been marked as a duplicate of this bug. ***
Comment 5 Nate Graham 2024-08-30 16:08:50 UTC
*** Bug 492361 has been marked as a duplicate of this bug. ***
Comment 6 Nate Graham 2024-09-16 17:51:02 UTC
*** Bug 493221 has been marked as a duplicate of this bug. ***
Comment 7 Nate Graham 2024-09-20 01:52:27 UTC
*** Bug 493386 has been marked as a duplicate of this bug. ***