window: check the initial wl_display_dispatch()
authorPekka Paalanen <ppaalanen@gmail.com>
Thu, 14 Feb 2013 10:18:00 +0000 (12:18 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 14 Feb 2013 17:25:30 +0000 (12:25 -0500)
commit33a68eaaf49ab1baffe652dffdd36bcf3bcb775d
treec9728882432a4dd2946298e7b75aea36de6a06cd
parent4e1065491bebef7213b8f496c6b8e1be526f1be0
window: check the initial wl_display_dispatch()

Check for errors in the first wl_display_dispatch() call. Otherwise
doing something silly like
  $ WAYLAND_SOCKET=999 ./clickdot
will segfault.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
clients/window.c