Moved to xcb_poll_for_event to prevent stalling.

Valgrin is reporting memory leaks within ipc_process_cmd.