Remove the hook that mvoe the cursor to center when the window is changed.