Made disable fullscreen work in semi-fullscreen mode