It takes a lots of clicks and sometimes I have to click on the window top bar to
get my typing to go to a window. This is unity Ubuntu 12.04 on a Dell 1557 studio.

I followed the method 1 to change
unity start-> configuration editor
and then
Apps -> Metacity -> mouse focus -> general -> mouse focus -> mouse
from strict like below:
http://askubuntu.com/questions/64605...-follows-mouse

Still, it did not fix it.