Don't steal focus

Answered

Most every morning I sit down, start up my computer and start up all the programs I will be working with that day. I usually proceed to read my email first. Unfortunately, Intellij, like so many products, thinks it is the most important program ever and it must have my attention. So it steals focus and puts itself right in my face. However, I tend to have between 2-4 projects open in different windows. So it does this not only once but for each project.

IMO there is never a case for focus stealing. One could make a case for security software which may have a legitimate need to demand direct action. I also think such a case has never occurred in my life. I suppose any kind of alarm program could make the case. I still wouldn't agree, but I can see that some people would. However IntelliJ has no case whatsoever to steal focus. Focus should be on what I am focussed on. Just because I started the IDE does not mean I intend to work with it right now. Untill someone implements a telepathic focus algorithm programs should just start up in the background and let me continue with whatever I am doing.

97 comments
Comment actions Permalink

I'm not sure how I got on the update list for this thread. When I try to change notification settings, it's all in Russian. We got hacked or something?

1
Comment actions Permalink

The "onmicrosoft.com" in the email just means that the email came from an Office365 tenant. It's very likely that JetBrains uses O365 for email. I would chalk the mass mailing up to a bug of some sort in their community system.

ps: stealing is bad, mmkay?

1
Comment actions Permalink

Jetbrains, please explain why I got a notification about this.

1
Comment actions Permalink

This thread was just refred to from the issue in the mail. But it seemd the jetbrains servers can't handle the load of all users who received the notification.

1
Comment actions Permalink

I agree, this is very annoying.

1
Comment actions Permalink

I agree, it is annoying please let the user decide what his focus is :)

1
Comment actions Permalink

Hello all,

We are sorry for the irrelevant notifications some users have got. The http://yt.jb.com/ server accidentally got translated into Russian language. This can be considered an operations issue on our side and we did our best to switch back to English. While switching the language back and forth we were also translating persistent saved searches people use to subscribe to issue updates. Apparently some of these queries got unwanted modifications, hence the strange and unrelated notifications some people got. The latter problem is mostly addressed by now.

We're now reviewing http://yt.jb.com/ access scheme to make accidental changes like this one impossible in future. At the same time certain technical measures are to be taken to make database translation process seamless and robust.

 

You can unsubscribe from the thread by clicking on the link from the e-mail notification:

 

 

or click unfollow button in the forum thread:

1
Comment actions Permalink

@Dawid Chodura you should write a book about this focus... Even if it's low priority for Jetbrains, it's a really quick fix.

1
Comment actions Permalink

Very annoying issue with focus stealing! Please fix this.

1
Comment actions Permalink

Very annoying and just screams amateurish engineering. Especially when PhpStorm steals focus 3 freaking times during boot up. Running on Linux so this is not a Windows specific issue.

1
Comment actions Permalink

This issue drives me crazy. Annoying and unnecessary. Bump.

1
Comment actions Permalink

The focus stealing is the most annoying part of the product. Would not be a problem if it would boot up faster though ;). I already tried forcing no program to ever focus-steal (using my window manager), but that also disallows popup messages to steal focus, which is even more annoying. Please, Jetbrains, fix this!

1
Comment actions Permalink

Same here, focus stealing is annoying as hell. This is how I found this thread, I was so pissed at PHPStorm because it stole focus about 6 times and Ive went searching for a solution. At first I thought that its OS related, but now I see it is not. Please fix this issue. Like many other I like to push on an icon while my current projects will boot up and go read emails or do some other stuff, but that focus grabbing makes it so freakin annoying. Ive ran out of patience :D so I found this thread.

1
Comment actions Permalink

Sometimes when indexing or searching you start some chat and when PhpStorm captures focus you will end up writting shit into your code. I see this issue as a major fault.

1
Comment actions Permalink

Vytenis, glad to know I'm not the only one!

1
Comment actions Permalink

The attempt to fix this behavior in the last release (2018.2) made it even worse. Now I can't switch to IDEA without minimizing all other windows. I use KDE Plasma 5.12.

1
Comment actions Permalink

Try adding "suppress.focus.stealing=false" to Help | Edit Custom Properties action.

If issue remains file a but at https://youtrack.jetbrains.com/issues/IDEA  with the exact steps that reproduce it for you and attach idea.log after IDE restart.

1
Comment actions Permalink

"suppress.focus.stealing=false" does not work on Ubuntu for latest android studio too. 

Android Studio 3.2.1
Build #AI-181.5540.7.32.5056338, built on October 9, 2018
JRE: 1.8.0_152-release-1136-b06 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 3.19.0-47-generic

This is too annoying.

1
Comment actions Permalink

Yes, I also agree. PhpStorm should not steal focus when starting up. Even after it steals focus and I refocus on a different window it will steal focus again!! It does this several times during startup, it is VERY annoying!

1
Comment actions Permalink

FYI re the "windows has always done this" Yes it has and it has plagued my existence for all of windows life and I hoped it wouldn't happen in Ubuntu.

1
Comment actions Permalink

Startup is annoying sometimes but not too bad. STealing focus while running embedded terminal commands or syncing file changes is a huge pain in the ** tho.

Mine steals focus all the time when running background operations or terminal commands. And I when I have 3 or more PhpStorm instances open they are stealing focus form each other constantly while running terminal commands and gets really confusing end up running command son the wrong project because I didn't notice it switched to a different PhpStorm instance.

Just had a session fo them constantly stealing focus form each other for 30 minutes until I wanted to uninstall PhpStorm and find some other editor.

Its not just startup. Stop stealing focus, for any reason, forever. Just never do it ever. 😠

1
Comment actions Permalink

Given that this issue was raised in 2013, we might have a slightly different definition of "as soon as possible"! ;-)

1
Comment actions Permalink

This problem is the most annoying thing on Intelij for me. I hate to be typing on the Terminal and my words appearing on a random class inside Intelij because they feel I want the app in my face right away.

1
Comment actions Permalink

First of all, I'm not 100% sure about I understood your thoughts, so sorry if I talk about the wrong issue.

If you talk about creating the window in front of all and autogaining focus, opening a program was always that way in Windows.

Anyway, for batch opening programs which you won't pay immediate attention, there are switches in Windows for opening programs minimized. Issue 1: PhpStorm ignores that switch with both splash screen and main window (IDEA issue or Java issue?).

Now, I won't talk about opening several projects, but simply configure it to reopen last project, and then close and start it (PhpStorm will show splash, open main Window, then open project). Try to use another application as @Konstantin says. A fight against PhpStorm starts, during which it will steal focus on splash screen, on main window creation, and in several moments of the project opening, scanning, etc. So Issue 2: please, if it wasn't specified in other way by the OS, I understand that in first term the splash screen launches focused. But if in any moment another Window is focused, IDEA mustn't try to gain focus again, at least not until all initial actions are completed and the program is fully ready for use.

Now @Konstantin, if what I talked about is not what you said, please correct me, so we can move forward to improve support in IDEA-106716.

0
Comment actions Permalink

@Mickael Powell - I'm in the same boat, no idea how I got on this list either.

0
Comment actions Permalink

Same here, login page is also in Russian or something like that. Sorry to hijack this issue, but what the hell is going on?

 

> You (swegener) received this message because you had enabled notifications for: Назначенные на меня,Созданные мной saved searches.

0
Comment actions Permalink

I think the notification is a mass phishing scam email. It's coming from onmicrosoft.com



0
Comment actions Permalink

I got the same as Trung Nguyen1. Or the CIA backed blame stream media planting "fake news".

0
Comment actions Permalink

"I think the notification is a mass phishing scam email. It's coming from onmicrosoft.com"

Possible? Likely? Who knows. no_replay (at) jetbrains (dot) com sounded sane enough.

 

0

Please sign in to leave a comment.