AutoRaise icon indicating copy to clipboard operation
AutoRaise copied to clipboard

The entire application with multiple windows is raised unexpectedly

Open mrmkrs opened this issue 8 months ago • 5 comments

Hi!

I've got 2 displays. On the left a Chrome window and the terminal. On the right another Chrome window and slack (specific applications dont mather, but this allows me to describe the issue better). Not even sure if the multiple displays is a relevant factor for this issue.

What does work is to hover over these windows in order: slack -> terminal -> chrome on the left display -> slack -> terminal -> chrome on the left display -> etc... This raises each window correctly and slack is always the top window on the right display.

But when you hover over these windows in oder: chrome on the right display -> slack -> terminal -> chrome on the left display Then also the chrome window on the right side is raised when you hover over the window on the left display

That is unexpected because now slack is partially hidden.

I use MacOS 15.4 (24E248) and AutoRaise 5.3.0

mrmkrs avatar Apr 30 '25 13:04 mrmkrs

same problem

mostafaaElsherbiny avatar May 04 '25 17:05 mostafaaElsherbiny

Might be related to #89

sbmpost avatar Jul 11 '25 13:07 sbmpost

@mrmkrs

The title mentions ALT-TAB, whereas the bug description is about hovering the mouse. Is the title incorrect or is this about ALT-TAB behaving inconsistently?

sbmpost avatar Jul 11 '25 14:07 sbmpost

Ah sorry about that, i've changed the title. The description is what i have observed. Looking at #89 it does look similar to my issue, but it is not chrome specific. If i replace chrome with textedit or outlook windows, the behaviour is the same.

mrmkrs avatar Jul 14 '25 06:07 mrmkrs

@mrmkrs The only way I can somewhat reproduce this, is by temporarily disabling AutoRaise. I then arrange Chrome and Slack windows according to your description and do this:

  1. I make sure Chrome on the right screen is underneath Slack.
  2. I use ⌃⌥-click on the left screen to only focus Chrome (no raise).
  3. I open System Preferences on the left screen (it opens above Chrome).
  4. Closing System Preferences results in Chrome on the right screen to raise above Slack.

This tells me there is an issue with the Apple window manager because AutoRaise is not involved in any of these steps. If I would have to guess, under certain circumstances, the window manager restores focus to the last activated window but doesn't take into account that focus may have changed using the key combination of step 2. Or it is activating the app as a whole. This is purely speculation however. Note I could not reproduce this with AutoRaise enabled and hovering.

sbmpost avatar Jul 14 '25 14:07 sbmpost