kerror() function, register exit callback to return resolution after return from fullscreen