Bug 457007

Summary: Focus stealing prevention not working in wayland session
Product: [Plasma] kwin Reporter: thomas.fritz.2000
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED LATER    
Severity: normal CC: kde, kishore96, nate, postix
Priority: NOR Keywords: wayland
Version: 5.25.1   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=458978
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description thomas.fritz.2000 2022-07-22 05:24:34 UTC
SUMMARY
In Plasma Wayland sessions, the "Focus stealing prevention" Window Rule does not have any effect

STEPS TO REPRODUCE
1. In a Wayland session, add the Window Rule "Focus stealing prevention: Force Extreme" to any GUI application A
2. Have at least one other window open
3. Open application A 

OBSERVED RESULT
Application A opens in front of all other windows and steals the user's focus.

EXPECTED RESULT
Application A opens behind all other windows without stealing the user's focus.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro KDE
KDE Plasma Version: 5.25.1
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5

ADDITIONAL INFORMATION
In Plasma X11 sessions, focus stealing prevention works as expected.
Comment 1 David Edmundson 2022-09-08 14:19:32 UTC
There is little we can do right now without a worse UX.

There was no concept of focus passing so there was no correct way to do it when we do want to pass focus. The only ok option was to activate any new windows.

We now have a concept (xdg activation) but we need to wait till deployment becomes a bit more mainstream before we can toggle any settings.