[#315] fixed the `exitFullscreen` function

this is working quite well actually :)