Bug 511798

Summary: Focus stealing prevention doesn't work for some apps
Product: [Plasma] kwin Reporter: Kalcifer <izerpizer>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: NEEDSINFO WAITINGFORINFO    
Severity: normal CC: kde, nate
Priority: NOR    
Version First Reported In: 6.5.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Kalcifer 2025-11-07 23:26:36 UTC
***

SUMMARY

Enabling focus stealing prevention for element-desktop (installed via arch repos), for example, with Force and Extreme, doesn't prevent it from stealing focus. For example, with Focus Stealing prevention enabled with Force Extreme for element desktop and having it auto start in a separate virtual desktop, it will always grab focus despite that setting. Ignore requested geometry has no effect on this behavior.

STEPS TO REPRODUCE
1. Set Focus Stealing Prevention to Force Extreme for Element Desktop
2. Have element desktop auto start into a separate desktop
3. go onto another virtual desktop
4. Auto start element desktop
5. Observe that the virtual desktop is automatically switched to that of element desktop's despite the setting.

OBSERVED RESULT

Focus stealing prevention is ignored for some apps.

EXPECTED RESULT

I would expect focus stealing prevention to be observed regardless of the app.


SOFTWARE/OS VERSIONS
Windows: N/A
macOS: N/A
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: Arch Linux, Kernel v6.12.57-1-lts
KDE Plasma Version: 6.5.1
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0

ADDITIONAL INFORMATION

None.
Comment 1 Nate Graham 2025-12-12 16:45:36 UTC
Is this app running in XWayland mode? If so, do those high focus stealing prevention modes work when you force it into native Wayland mode by passing it `--ozone-platform=wayland` on the command line?