Issue #5507: auto full screen bug

Issue #5507: auto full screen bug