ianyh / Amethyst

Automatic tiling window manager for macOS à la xmonad.
https://ianyh.com/amethyst/
MIT License
14.68k stars 486 forks source link

Focus Follows Screen #1310

Open OneHoopyFrood opened 2 years ago

OneHoopyFrood commented 2 years ago

Is your feature request related to a problem? Please describe. I use multiple monitors. When I switch screen focus (mod1 + N, mod1 + p) then switching spaces via Mission Control (cmd + <-, cmd + ->) doesn't work properly as mission control switches spaces on the screen with mouse dwell.

Describe the solution you'd like I like Mouse Follows Focus, except that the cursor is then in the middle of the window. If it could be either hidden after the move or placed just inside the lower-left corner, that would be preferable. Alternatively, I would like the option to have the mouse only follow screen focus changes (again moving to the lower-left of the monitor) rather than window focus changes. Either of these would make Mission Control behave as expected.

Describe alternatives you've considered I am using Cursorcerer which is working fine, but it would be nice to have the option to do this w/o an additional app.

augustebaum commented 1 year ago

Seconded. IMO the proposed solutions are not optimal because the main issue is not being able to find my mouse where I left it. Is there a specific reason for the current behaviour?

ianyh commented 1 year ago

Seconded. IMO the proposed solutions are not optimal because IMO the main issue is not being able to find my mouse where I left it. Is there a specific reason for the current behaviour?

The behavior is the way that it is because the shortcuts for changing spaces on macOS depend on where the mouse is. I think the proposed problem is that they don't want the mouse to specifically move to where it is, but still want it to move to the correct screen.

augustebaum commented 1 year ago

Just re-read and I agree with @OneHoopyFrood: assuming focus is only decided based on mouse position and we can't do anything about that, then the "hidden after move" and "only follow screen focus changes" proposals seem like acceptable workarounds.