I know PS/2 disconnects/reconnects (i.e. from a KVM switch) can cause erratic mouse behavior on Intellimouse in X windows. Maybe its similiar. Check to see if your mouse is pushed in enough.