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:

Still, it did not fix it.