Add frame.invalidate() call when we want to use fullscreen mode.