- 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
ActiveWndTrkTimeoutto 300 - Update
UserPreferencesMaskby 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/
Enable Xmouse (Focus Follows Mouse) in Windows
Press
Win + R, pastecontrol.exe /name Microsoft.EaseOfAccessCenterinto the Run dialog, and press Enter. In the window that opens, click on “Make the mouse easier to use”.Check the box for “Activate a window by hovering over it with the mouse” and click OK.
To customize the behavior, press
Win + R, typeregedit, and press Enter to open the Registry Editor. Navigate to the following path:HKEY_CURRENT_USER\Control Panel\DesktopIn the right-hand pane, find and double-click
UserPreferencesMask. To prevent windows from automatically rising to the front when they gain focus, subtract40from the first two characters of the value. For example, if the value isDF, change it to9F.Next, find the
ActiveWndTrkTimeoutvalue. If it doesn't exist, create it by right-clicking in the right-hand pane, selecting New → DWORD (32-bit) Value, and naming itActiveWndTrkTimeout.300for 300ms or (hex: 12C)).Sign out of Windows and sign back in for the changes to take effect.