Bug 378029 - Firefox likes to take focus
Summary: Firefox likes to take focus
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: core (other bugs)
Version First Reported In: 5.8.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-24 18:38 UTC by miklos
Modified: 2021-11-07 17:23 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 miklos 2017-03-24 18:38:41 UTC
I use the "Focus Follows Mouse - Mouse Precedence" policy. When I move the mouse from a Firefox window to an other window (they are overlapping), sometimes the other window only gains focus for a moment, and Firefox gains focus back. It also happens sometimes that I'm changing desktops, and on the new desktop no window gets focused, but Firefox on a completely different desktop gets the focus.
Comment 1 Martin Flöser 2017-03-24 21:36:27 UTC
well, it's Firefox :-( Browsers tend to be difficult. They are using their own toolkits and implement things differently. All I can suggest is to set a higher focus stealing prevention for Firefox through the window specific rules.

Most likely there is not much we can do as Firefox is using legit X calls to regain focus. And if we would be more strict there, other applications would break. It might be interesting to monitor what goes on in the browser when this happens. E.g. did you open a link and it finished loading, stuff like that which might make Firefox try to regain focus.
Comment 2 miklos 2017-03-24 22:45:36 UTC
AFAICT nothing goes on in the browser.
Comment 3 Alexander Mentyu 2018-04-13 13:40:48 UTC
Can't reproduce with:

firefox 59.0.2-2
Plasma: 5.12.4
Apps: 17.12.4
Frameworks: 5.44.0
Qt: 5.10.1
Kernel: 4.14.32-1-MANJARO
OS: Netrunner Rolling
Comment 4 kde.org 2021-11-06 20:43:14 UTC
This issue report is quite old. Can you please confirm, that it still persists with KDE 5.23?
Comment 5 miklos 2021-11-07 17:23:16 UTC
With Plasma 5.23 and Firefox 91 I can no longer reproduce this.