- Navigate to Control Panel > Ease of Access > Ease of Access Center > Make the mouse easier to use
- Check "Activate a window by hovering over it with the mouse" and hit OK
- In the registry editor, navigate to
Computer\HKEY_CURRENT_USER\Control Panel\Desktop
- Update
ActiveWndTrkTimeout
to 300 - Update
UserPreferencesMask
by subtracting 40 bits from the first hex value e.g. DF -> 9F - Log out and log back in
Source: https://winaero.com/enable-xmouse-window-tracking-windows-10/
Step 1 and 2 seem to be enough to enable focus follows mouse. Everything else is just to make windows focused this way not be automatically brought to the front. Would you mind adding this as context to your guide @anshumanb?