Proper handling of resources on fullscreen switch.