wayland-client: forward fatal errors to caller
authorDavid Herrmann <dh.herrmann@googlemail.com>
Thu, 11 Oct 2012 21:37:53 +0000 (23:37 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 15 Oct 2012 23:23:40 +0000 (19:23 -0400)
commit33b7637b4500a682018b503837b8aca9afae36f2
tree8b124afc61f6212eb9b815c547093de5e5fd8875
parentedae4ffa3741378d0f0b0122b5a8f8743034903b
wayland-client: forward fatal errors to caller

If any callback or helper function fails with a fatal error, we now
set the last_error flag and prevent all further I/O on the wl_display. We
wake up all sleeping event-queues and notify the caller that they
should shutdown wl_display.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/wayland-client.c
src/wayland-client.h