WAIT for xcb event instead of polling