Launch regedit.exe

HKEY_CURRENT_USER Software Microsoft Windows CurrentVersion Explorer AdvancedGo to Edit->New->DWORD 32-bit ValueName the value LastActiveClick

Hit enter to assign the value and change it to 1Restart Explorer and you're good to go.

via Speed Up Windows 7 Taskbar Navigation with a Registry Hack – Windows Tip – Lifehacker.