Alt-tab application switch inputs "tab" in the application

Hi I have a lot of unwanted tabs in my editors when cycling thru different windows with alt-tab. Same as reported here: Reddit - Dive into anything and here: Bogus TAB up/down events when pressing ALT+TAB quickly on Linux · Issue #2118 · libsdl-org/SDL · GitHub

It affects vscode and intellij for me, not KDE apps like Kate.
Is there a fix for this?

$ grep PRETTY_NAME /etc/os-release
PRETTY_NAME="Fedora Linux Asahi Remix 40 (KDE Plasma)"

I have seen this as well, but only when using Java (Swing) based applications. I thought it might be a Java bug.

Yes this affects me mostly in intellij but it also happens in vscode (not java). Just checked: it does NOT happen in KDE Kate or other KDE apps.

Can you please upload the images here? Or the entire text?

Reddit blocks VPN users, so it is not a freely accessible platform.

This may be a Wayland issue (actually an application issue, because they dont have correct desktop entries) but cant say until we get more infos.

1 Like

this gif (from the github issue) shows the behavior best:
tabbed

there’s not much going on in reddit:

You may want to add these infos to the main post :wink:

Have you tried a different keyboard?

It’s a macbook, tried to connect to a surface keyboard, but that failed :frowning: Another thing: I started to see the issue only after upgrading to fedora 40, never before

From Ask Fedora to Asahi General

This must be applicable to KDE, I’m on Gnome, and Full Screen almost everything. Tabs for Firefox, Terminal (Ptyxis), Gnome Terminal and other applications.

This would drive me wild if it were happening on Gnome.

The Github issuse seem to be about 2yrs old now, so maybe this is a KDE issue? I saw 1 Ubuntu Gnome issuant, but that is a highly customized version so may not be applicable.

I have been using F40 since it came out, and I noticed this behaviour only recently (something like last week). I would think it’s one of the recent KDE updates that broke this.

Added plasma6

This is unlikely to be related to the Asahi remix specifically, and more likely a general KDE/XWayland issue.

no, I just installed xfce/xorg for comparison. @marcan thanks soo much for your work I’m having the best computer setup ever

Additional info. It just occurs on the second and subsequent “tab” events. So alt+tab release alt+tab works fine. alt+tab (holding alt) and tab, tab, … inserts the unwanted tab chars.

Still reproducible on:
KDE Plasma: 6.1.3
KDE Framework: 6.4.0
Qt: 6.7.2
Graphics: Wayland

I see this problem on Fedora 40 (latest updates) with KDE and Intellij. I tried switching to GNOME running on XORG and do not see the problem at the moment on GNOME.

https://youtrack.jetbrains.com/issue/JBR-5182/AltTab-doesnt-set-focus-when-switching-to-a-different-desktop-on-KDE reports a similar problem and mentions a reproducer app.

Question, are there any troubleshooting tips that would show the OS level events triggered in response to the press of ALT-Tab? Or any other trace output that might help track down the cause?

See here for a solution (workaround?)

1 Like

This should be fixed in Plasma 6.2 (when it is rolled out). Upstream bug: 484992 – Xwayland apps get Tab keyboard events even when they should be filtered out by event filter

From Asahi General to Ask Fedora