clients: Check return value of wl_display_dispatch()
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 16 Oct 2012 17:16:10 +0000 (13:16 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 16 Oct 2012 17:17:16 +0000 (13:17 -0400)
commita17f7a13fddcf1f3706354e7d739517850552b20
tree6a30c0e28f2d464bd755050af0b2ef2b6f2f5f94
parent7a92ea494cc1abe4675090241dbe87674b339fea
clients: Check return value of wl_display_dispatch()

The simple clients all just call wl_display_dispatch() in a while loop
without checking the return value.  Now, if the server dies or other
error occurs, we get a -1 return value instead and need to break the loop.
clients/simple-egl.c
clients/simple-shm.c
clients/simple-touch.c
clients/window.c