| Summary: | X11 override-redirect window retain focus after switching to Wayland-native window | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | Marek Marczykowski-Górecki <marmarek> |
| Component: | input | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | REPORTED --- | ||
| Severity: | normal | CC: | duha.bugs, kdedev |
| Priority: | NOR | ||
| Version First Reported In: | 6.4.4 | ||
| Target Milestone: | --- | ||
| Platform: | Fedora RPMs | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Reproducer | ||
|
Description
Marek Marczykowski-Górecki
2025-08-27 19:32:46 UTC
I'm not able to reproduce this on git-master nm-applet isn't available for Solus, where I have git-master installed; I tested with Xournal++ with and without the provided environment variable. Are there other applications you are able to reproduce this with? Note: In Solus and Fedora, the default is not "Always allowed" but "As above, plus any key pressed while Ctr, Alt or Meta is also pressed. > Note: In Solus and Fedora, the default is not "Always allowed" but "As above, plus any key pressed while Ctr, Alt or Meta is also pressed.
That's correct. But that still in practice passes all arrows, F-keys etc, even if no modifier is pressed. TBH, I'm not sure if that's intentional.
As for the reproducer, I'll prepare minimal example.
But also, it appears to affect not only override-redirect windows, but also status icons (via xembed). Specifically, even after closing menu of the status icon (still nm-applet here), Enter key will open the menu again.
And one more observation: the problem appears directly after switching from X11 window to Wayland window. But then after switching from one native Wayland window to yet another focus the problem disappears.
Created attachment 184827 [details]
Reproducer
Compile with `gcc window-focus.c -lX11 -o window-focus`
It creates a simple override-redirect window and prints any key events it receives. In the problematic situation, it gets events (arrows, F-keys, Enter etc) that should be sent only to another (native Wayland) app.
|