Bug 511798 - Focus stealing prevention doesn't work for some apps
Summary: Focus stealing prevention doesn't work for some apps
Status: NEEDSINFO WAITINGFORINFO
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.5.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-07 23:26 UTC by Kalcifer
Modified: 2025-12-12 16:45 UTC (History)
2 users (show)

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


Attachments

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