sbmpost / AutoRaise

AutoRaise (and focus) a window when hovering over it with the mouse
GNU General Public License v3.0
1.48k stars 60 forks source link

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

Open CookiePolicyEnforcer opened 1 year ago

CookiePolicyEnforcer commented 1 year ago

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 commented 1 year ago

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:

sbmpost commented 1 year ago

@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 commented 1 year ago

@sbmpost Here are the names and bundle ids:

@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 commented 1 year ago

@CookiePolicyEnforcer Thanks! Will add these in the following release

stuaxo commented 10 months ago

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 commented 8 months ago

@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 commented 8 months ago

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 commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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?