Bug 507852

Summary: Application running under 'Xwayland' unable to raise focus to other applications
Product: [Plasma] kwin Reporter: Antonino Scordino <me>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: nate
Priority: NOR Keywords: wayland-only
Version First Reported In: 6.4.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Antonino Scordino 2025-08-04 13:45:39 UTC
SUMMARY
 When executing an application under 'Xwayland' (e.g. any Electron), it is unable to bring other applications into focus (e.g. Firefox).

STEPS TO REPRODUCE
0. Verify that the application used to reproduce the bug is running under 'Xwayland' using 'xlsclients' (e.g. Discord);
1. Create a link or a file associated with an application (e.g. PDFs, URLs);
2. Attempt to open the file or link via the application running under 'Xwayland'.
3. Wait for the application that has been requested to gain focus to appear.

OBSERVED RESULT
The application for which focus has been requested opens, but it does not appear above the application from which the request was made.

EXPECTED RESULT
The application for which focus has been requested opens and is displayed above the application from which the request was made.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.4.3
KDE Frameworks Version: 6.16.0
Qt Version: 6.9.1

ADDITIONAL INFORMATION
This issue does not occur when a dialog window (e.g., Firefox's "Download" dialog) is invoked.
Comment 1 Nate Graham 2025-09-23 22:02:40 UTC
Both the sending and receiving app are non-KDE apps, which means it's out of our hands here. Both the sending and receiving apps need to implement the Wayland activation protocol properly, and it's common for both Electron apps and Firefox to have problems here.