- 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/