I'm looking forward to 2.0 where it should be fixed, or so they say.
It shouldn't happen when you are in windowed mode though, try updating your drivers (if you are playing on a laptop, chances are it's your laptop causing it)