Logs were printed by the caller of switch_fullscreen(). Move them inside the function to simplify event handling code.