Bug 457007 - Focus stealing prevention not working in wayland session
Summary: Focus stealing prevention not working in wayland session
Status: RESOLVED LATER
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.25.1
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2022-07-22 05:24 UTC by thomas.fritz.2000
Modified: 2022-09-13 18:32 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

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