Handle sdl.QUIT and ignore motion/wm events.