also focus on the window when swithing tab
Merge pull request #47 from kho/master

Fix bug #35