client: Simply wl_display_dispatch_queue_pending() and fix return value
authorJiergir Ogoerg <f35f22fan@gmail.com>
Mon, 29 Jul 2013 23:50:44 +0000 (16:50 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 29 Jul 2013 23:50:44 +0000 (16:50 -0700)
commitc1fd097cd995ec02cfcf673fa243f95d4439bac2
treee2c045c37f8b05815c9929f6c7bfc4011132977f
parent03dc786c906d9567bd09cbf4ad17263edc381cc8
client: Simply wl_display_dispatch_queue_pending() and fix return value

We're supposed to return number of events dispatched on success, not 0.
Refactor to avoid goto and just return ret.
src/wayland-client.c