Bug 489631 - Walking through multiple windows can send keyboard inputs to current window
Summary: Walking through multiple windows can send keyboard inputs to current window
Status: RESOLVED DUPLICATE of bug 484992
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 6.1.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-02 18:57 UTC by figueroa628
Modified: 2024-07-02 19:18 UTC (History)
1 user (show)

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


Attachments
A video of a window receiving TAB characters while cycling windows. (460.45 KB, video/x-matroska)
2024-07-02 18:57 UTC, figueroa628
Details
My kwinrc configuration file. (842 bytes, text/plain)
2024-07-02 19:05 UTC, figueroa628
Details

Note You need to log in before you can comment on or make changes to this bug.
Description figueroa628 2024-07-02 18:57:53 UTC
Created attachment 171301 [details]
A video of a window receiving TAB characters while cycling windows.

SUMMARY
For certain applications, walking through windows by hitting Alt+Tab+Tab will send TAB characters (or any other keyboard input) to the current window. It happens with emacs windows; I haven't yet found any other applications where this problem occurs.

STEPS TO REPRODUCE
0. Start a Plasma Wayland session.
1. In settings, make sure the Alt+Tab keyboard shortcut is bound to Walk Through Windows. (This is the default.)
2. Open an `emacs` window as the active window.
3. Hit `Alt+TAB+TAB+...+TAB` to walk through windows. (Hit TAB at least twice while holding down Alt.)

OBSERVED RESULT
The emacs window will receive the TAB key (If you hit TAB n times, then emacs will receive n-1 TAB keys.) Eg, if emacs is in "fundamental-mode", then TAB characters will be inserted in the buffer. (In some other modes, the current line will be indented.)

EXPECTED RESULT
The emacs window never sees the TAB keys, and does not change in any way as windows are cycled.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 6.9.7-arch1-1
KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
* The problem does not seem to happen on X11.
* I tried with a couple other applications, but so far only emacs windows have this issue.
* To reproduce, the emacs window cannot be inside of a console with `emacs -nw`; it needs to be a separate window.
* The problem is more general than just TAB keys. Hit Alt+TAB; while still holding down Alt, press any keys. Emacs will receive all of them.
* The same problem happens if you rebind Walk Through Windows to a different keyboard shortcut. Eg, if you turn off the default binding and rebind it to Alt+q, then hitting Alt+q+q+q+q will send 3 q's to emacs.
Comment 1 figueroa628 2024-07-02 19:05:40 UTC
Created attachment 171303 [details]
My kwinrc configuration file.
Comment 2 Zamundaaa 2024-07-02 19:18:18 UTC

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