Fix toggle fullscreen.

Fixes toggling fullscreen (particularly on a mac) by destroying and
recreating the display. Also refactored to more closely match the
android workflow.