Fix fullscreen toggling.
Merge pull request #1093 from CautiousAlbino/fullscreen_toggle_fix

Fix fullscreen toggling.