Disable autofocus on dialog window when I click on close tab in SublimeText
The Snap To mouse feature is turned on. To turn it off, open the Start menu and search for "Mouse", then open the Mouse Properties.
Go to the Pointer Options tab and the Snap To section. Uncheck the box for Automatically move pointer to the default button in a dialog box.