On 12/28/2015 06:10 PM, Jonas Ã…dahl wrote: > + ret = wl_display_flush(display); > if (ret < 0 && errno != EAGAIN && errno != EPIPE) { With your patch 5/8 EAGAIN will never happen, so you might want to remove it here.