Bug 442269 - X11 applications can't move focus between themselves on Wayland
Summary: X11 applications can't move focus between themselves on Wayland
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: git master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2021-09-10 16:03 UTC by Nate Graham
Modified: 2023-08-17 11:58 UTC (History)
4 users (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 Nate Graham 2021-09-10 16:03:54 UTC
When an app sends a notification, on X11 clicking on the body of the notification will generally activate the app and bring it forwards. Example apps: NeoChat, Telegram, Discord. On Wayland, the app gets activated but not brought forward.
Comment 1 David Edmundson 2021-09-10 16:10:39 UTC
None of those examples have activation support
Comment 2 David Edmundson 2021-09-10 16:16:10 UTC
The fact that the X11 app isn't brought forward is surprising, that potentially should work.

Can we focus on that.
Comment 3 Nate Graham 2021-09-10 16:25:24 UTC
The app always gets brought forward on X11; on Wayland it does not. There is no problem to solve on X11.
Comment 4 JR 2021-12-04 18:48:53 UTC
Can reproduce with Discord, Telegram, Slack, 1Password; all opened in native Wayland.

> /usr/bin/discord --enable-features=UseOzonePlatform --ozone-platform=wayland
> /usr/bin/telegram-desktop -platform wayland -- %u
> /usr/bin/slack --enable-features=UseOzonePlatform,WebRTCPipeWireCapturer --ozone-platform=wayland -s %U
> /opt/1Password/1password --enable-features=UseOzonePlatform --ozone-platform=wayland %U

Not applicable to 1Password, but a very easy way to reproduce this is to try to give focus to the program in question by its tray icon, when its window already exists.

This happens even with Focus Stealing Prevention set to None. X11 works fine.
Comment 5 Marko Gobin 2022-02-10 14:37:46 UTC
This title seems to be kind of misleading.
Wayland native apps have this problem, if app is forced to run with XWayland - clicking on notification activates and focuses app.
Tested on plasma 5.25.
Comment 6 Marko Gobin 2022-02-10 15:02:45 UTC
(In reply to gobonja from comment #5)
> This title seems to be kind of misleading.
> Wayland native apps have this problem, if app is forced to run with XWayland
> - clicking on notification activates and focuses app.
> Tested on plasma 5.25.

Typo: tested on plasma 5.24.
Comment 7 Zamundaaa 2023-08-17 11:58:34 UTC
Works fine for me on 5.27 with Discord