implemented better fullscreen handling, please test