I'm pretty sure it has to do with shifts in resolution, like when running something in fullscreen mode, connecting/disconnecting a new monitor, or anything else that forces the desktop layout to recompute.
Try this, this should fix the problem:
If it works you can then bind that to a keyboard shortcut to at least ease the pain until this gets resolved.