Finish up the x11 engine event code.