Bug 507852 - Application running under 'Xwayland' unable to raise focus to other applications
Summary: Application running under 'Xwayland' unable to raise focus to other applications
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 6.4.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2025-08-04 13:45 UTC by Antonino Scordino
Modified: 2025-09-23 22:02 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.