macos

Focus Follows Mouse on MacOS


PROBLEM: How to implement focus follow mouse for all windows / apps on MacOS?

CONTEXT: Terminal commands such as

defaults write com.apple.terminal FocusFollowsMouse -string true

implement the desired behavior ONLY for terminal windows.

SIMILAR POST: Implement "Mouse Follows Focus" on MacOS


Solution

  • This is the answer: https://github.com/sbmpost/AutoRaise Works perfectly.

    For the precise, classic behaviour of "focus follows mouse", without raising the window, it must be compiled with the suggested flags

    make CXXFLAGS="-DOLD_ACTIVATION_METHOD -DEXPERIMENTAL_FOCUS_FIRST" && make install
    

    and then run with the options:

    /Applications/AutoRaise.app/Contents/MacOS/AutoRaise delay=0 focusDelay=1