Fix jittery mouse in window

Hopefully for real this time. :/