Skip to content

Instantly share code, notes, and snippets.

@anshumanb
Last active January 24, 2026 22:12
Show Gist options
  • Select an option

  • Save anshumanb/19b2ae62f8fbad8138efb571bbe163b1 to your computer and use it in GitHub Desktop.

Select an option

Save anshumanb/19b2ae62f8fbad8138efb571bbe163b1 to your computer and use it in GitHub Desktop.
Set up focus follows mouse on Windows 10

The following instructions have only been tested on Windows 10.

Enable "Focus follows mouse"

  1. Navigate to Control Panel > Ease of Access > Ease of Access Center > Make the mouse easier to use.
  2. Check "Activate a window by hovering over it with the mouse" and hit OK.

Stop windows being brought to front on focus

Once "Focus follows mouse" is enabled, you may find it helpful to prevent windows from being brought to front on focus:

  1. In the registry editor, navigate to Computer\HKEY_CURRENT_USER\Control Panel\Desktop.
  2. Update ActiveWndTrkTimeout to 300.
  3. Update UserPreferencesMask by subtracting 40 bits from the first hex value e.g. DF -> 9F.
  4. Log out and log back in.

Source

PS: These instructions are terse. For more detailed steps, check out @erbanku's comment.

@anshumanb
Copy link
Author

@abstractionmage Done. Thank you for pointing that out.
@erbanku Thanks for the update. Have linked to it from the gist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment