I\'m having a annoying problem since I update IntelliJ IDEA Community to this version:
IntelliJ IDEA 2017.2
Build #IC-172.3317.76, built on July 15, 2017
JRE
According to the release notes it's fixed in the latest release - 2017.2.3 (build number IU-172.3968.16) - 173000 is in the list: https://confluence.jetbrains.com/display/IDEADEV/IntelliJ+IDEA+2017.2.3+Release+Notes?fromIDE
What ultimately worked for me was adding -Dfocus.follows.mouse.workarounds=true
to my custom VM options (Help > Edit Custom VM Options).
I found this in https://youtrack.jetbrains.com/issue/IDEA-173000, mentioned above.
I use a tiling window manager (i3) which I suspect is related.
It's a known issue, please follow it here for updates:
Workaround (add the following via Help
| Edit Custom VM Options):
-DactionSystem.xWindow.remove.focus.from.nonFocusable.popups=false
Downgrading to 2017.1 version is another option.
UPDATE: the issue is resolved in 2017.2.3 release.