X11 fixed ccPollEvent bug