Remove unused function.
Properly finish the recording in 'separate file' mode.
Improved mouse following algorithm for X11Input.