Did you move the mouse outside the game window when this happened? Could you try clicking the game window the next time it happens and see if that helps?
I tried clicking inside, clicking outside, and dragging from one to the other, but none of it seemed to help :(