Improve toggle fullscreen
Added event queue