Reputation: 493
I have a really annoying bug: when I hit CTRL+SHIFT+N to search for a file, sometimes it loses the focus, and characters entered that are put into the file currently being edited, but then it regains it, and continues the correct behaviour (this happens without moving the mouse!!!).
When I used unity on ubuntu 14.04 (with sloppy focus mode), it was ok, but with Gnome shell 3.10, having sloppy mode when changing window focus, it creates this bug. Does anyone know a solution for this?
It breaks my developement because I don't even observ I have a new character in the file, and it drives me crazy. Thx.
Upvotes: 5
Views: 1249
Reputation: 2154
You want to prevent other processes (such as the desktop environment) from stealing focus.
Open PhpStorm (or IntelliJ, or whatever other JetBrains IDE you use)
Go to Help -> Edit Custom Properties
Add the line suppress.focus.stealing=false
Restart the IDE
Other processes will no longer steal focus when you try to move focus to the IDE.
Upvotes: 0
Reputation: 768
Try disabling in registry:
actionSubsystem.xWindow.remove.focus.from.nonFocusable.popups
Ctrl+Alt+Shift+/ and select "Registry")
It works in Ubuntu 16.04.
Upvotes: 3
Reputation: 93728
See comments in IDEA-112015 for possible workarounds. The issue is indeed related to 'cursor following mouse' (i.e. sloppy focus) mode
Upvotes: 4