Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Jetbrains IDE windows getting raised even though raise is disabled #131

Open
CookiePolicyEnforcer opened this issue Apr 4, 2023 · 10 comments

Comments

@CookiePolicyEnforcer
Copy link

I have encountered a bug with the "raise" setting. When raise is disabled, Autoraise works as expected for all windows except for Jetbrains IDE windows (e.g., Webstorm or Pycharm). They still get raised to the foreground even though they shouldn't.

image

@Laaarge
Copy link

Laaarge commented Apr 4, 2023

yup this is a know issue, but it is on the side of JetBrains:
they raise the window when it is focused, interfering with AutoRaise.
there a 2 things you can do:

  • disable autoraise for that application if it annoys you less
  • file a bug report/ contact JetBrains
    the office suite has the same behavior :/

@sbmpost
Copy link
Owner

sbmpost commented Apr 5, 2023

@CookiePolicyEnforcer @Laaarge

There is an Intellij IDEA workaround in AutoRaise that prevents it from raising its sub-windows at least. Not a complete workaround though as the main window will still be raised instead of focused.

And apparently other JetBrains apps suffer from the same behavior. If you can send me the exact app name (not the bundle id), I may be able to add it to the temporary workaround. Not sure if this will help you as it is only a partial workaround.

Edit: thinking more about this, perhaps I should consider using part of the bundle id after all. The part that says JetBrains...

@CookiePolicyEnforcer
Copy link
Author

@sbmpost Here are the names and bundle ids:

  • BundleName: Webstorm
  • BundleIdentifier: com.jetbrains.Webstorm
  • BundleName: PyCharm
  • BundleIdentifier: com.jetbrains.pycharm.ce

@Laaarge Thanks, I've disabled Autoraise for WebStorm and PyCharm, and while it's not ideal, it’s less annoying. I might file a bug report. They probably won't treat it as a priority issue, but maybe they'll do something about it.

@sbmpost
Copy link
Owner

sbmpost commented Apr 7, 2023

@CookiePolicyEnforcer
Thanks! Will add these in the following release

sbmpost pushed a commit that referenced this issue May 16, 2023
…r app, #137

Add partial workaround for JetBrains PyCharm and WebStorm, #131
sbmpost added a commit that referenced this issue May 17, 2023
* Fix switching away from desktop window and photos app. Adds calculator app, #137
Add partial workaround for JetBrains PyCharm and WebStorm, #131

* Drop focus loop protection as it would seem floating windows are the ones that can't be focused, #80

* Update universal binary to v3.8.0

---------

Co-authored-by: Stefan Post <[email protected]>
@sbmpost sbmpost mentioned this issue Aug 30, 2023
@stuaxo
Copy link

stuaxo commented Dec 5, 2023

PyCharm / IntelliJ have had issues with focus-follows mouse on all OSs for a long time, I think it's an issue in the GUI toolkit they use, I think there are some bugs on their bug tracker about. In theory, their base version is open source so it may even be fixable there.

@kjyv
Copy link

kjyv commented Feb 12, 2024

@stuaxo Any pointers to these mentioned issues in their bug tracker? Do we need to push Jetbrains to fix this? Disabling focus and autoraise is not an option for me, I'd like focus to happen and not autoraise.

@stuaxo
Copy link

stuaxo commented Feb 12, 2024

I had a quick look in https://youtrack.jetbrains.com/issues and couldn't find the exact bug.

I'd have a look, if you can't find the exact bug then report it - someone else may be able to surface something if it's a duplicate.

@sbmpost
Copy link
Owner

sbmpost commented Apr 10, 2024

I had a look as well. There seems to be a long history of focus related problems:

https://youtrack.jetbrains.com/issue/IDEA-142036/IDE-brings-itself-to-the-foreground-on-mouse-over

@stuaxo
Copy link

stuaxo commented Apr 10, 2024

Nice work - yeah, it's so long standing - I assumed it's something in the toolkit they use, the funny thing is it seems to come back periodically too.

I used for use focus follows mouse on Windows and PyCharm would have the issues there too.

They can't have any devs working at JetBrains who use focus follows mouse.

@kjyv
Copy link

kjyv commented Apr 12, 2024

It's unclear though if this jetbrains ticket is the same issue that causes this on macOS - they are only talking about linux. And @stuaxo you commented about a specific issue only with the File->Open dialog on linux. Wouldn't it make sense to open a new ticket instead for the specific behaviour with AutoRaise on macOS?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants