sbmpost / AutoRaise

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

Feature request: Only shift focus for maximized windows #213

Open RowanG1 opened 6 months ago

RowanG1 commented 6 months ago

I use Magnet for maximizing windows. I only really like to use AutoRaise for windows that are maximized by Magnet, when using multiple displays. I find that AutoRaise unexepctedly hides windows when it operates on layered screens on one display. So the good use case for me is when I move the pointer to another display, not when I move to another window within a display. It would be great to have an option to only shift focus for maximized windows (not just Mac maximized windows, but also window management tools like Magnet), and where the maximized window has no other windows layed on top of it.

RowanG1 commented 5 months ago

One solution I found to this issue,is to use the Mac "Stage Manager", which prevents the windows from overlaying each other in the first place.

sbmpost commented 5 months ago

@RowanG1

Will take a look but may take a while. It is a rather specific requirement in combination with magnet.

So the good use case for me is when I move the pointer to another display, not when I move to another window within a display

There is an experimental branch which implements exactly this. It is called focus-only-on-change-screen. Would that work for you?

mxgrn commented 6 days ago

There is an experimental branch which implements exactly this. It is called focus-only-on-change-screen. Would that work for you?

Not the original poster, but yes, it works! I cherry-picked 8738ac5faa730157b725e2d16fd1f3c3920886b0 on top of master, and it does work: triggering only at moving to another display. Exactly what I need, thanks!

RowanG1 commented 6 days ago

@sbmpost Thanks, that is good, but doesn't quite work spot on. There is a bug in that when switching screens, sometimes windows on the newly active screen disappear, like Finder.

mxgrn commented 6 days ago

@RowanG1 Can it be that they disappear behind a larger window that you briefly pass your mouse over? Just as an idea.