QM: fixed the mouse motion stuff.