Restore the fullscreen attribute if it is needed.