I had this problem occasionally. Same setup: two accounts, both windows maximised. When I switch the windows with Alt-Tab, sometimes the window in front does not get the focus. If I switch more slowly, it does. So when the problem occurs, try to switch forth and back slowly, sometimes that works.
Connect With Us