fixed flickering when toggling fullscreen focus