Code cleanup relating to mouse events and the launcher.