https://bugs.kde.org/show_bug.cgi?id=504165
Bug ID: 504165 Summary: XWayland ran electron app is stealing focus from a native wayland app Classification: Plasma Product: kwin Version: git-stable-Plasma/6.3 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: xwayland Assignee: kwin-bugs-n...@kde.org Reporter: steemandli...@gmail.com Target Milestone: --- Summary: Electron apps running under XWayland incorrectly regain focus after another XWayland window is closed, even when a native Wayland window should become active. Steps to reproduce: Launch an Electron application (running via XWayland). Launch a second XWayland application. In between, ensure there's a native Wayland window (e.g., Dolphin or a web browser) that was active before. Close the second XWayland application. Expected behavior: The previously active Wayland-native window (Dolphin or browser) should regain focus. Actual behavior: The first Electron app (running on XWayland) becomes active and receives focus, even though it wasn't the last active window. Additional notes: This issue only occurs with Electron apps running under XWayland. Other XWayland clients (like xterm, xwayland ran chromium, wine) do not cause this behavior. If the same Electron app is launched using native Wayland (--ozone-platform=wayland), the issue does not occur. This suggests the problem may be related to how Electron/Chromium handles background/foreground state under X11, possibly requesting focus incorrectly. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Arch Linux KDE Plasma Version: 6.3 KDE Frameworks Version: 6.13 Qt Version: 6.9 -- You are receiving this mail because: You are watching all bug changes.