<div dir="ltr"><div><div>Hi,<br></div>I think in wayland-client.c the function wl_display_dispatch_queue_pending(...)<br></div>could be simplified<br>from this:<br><div> pthread_mutex_lock(&display->mutex);<br> if (dispatch_queue(display, queue) == -1)<br>
goto err_unlock;<br> pthread_mutex_unlock(&display->mutex);<br> return 0;<br> err_unlock:<br> pthread_mutex_unlock(&display->mutex);<br> return -1;<br><br></div><div>to this:<br> int ret;<br>
pthread_mutex_lock(&display->mutex);<br> ret = dispatch_queue(display, queue);<br> pthread_mutex_unlock(&display->mutex);<br> return (ret == -1) ? -1 : 0;<br><br><br><br></div><div>Just my 0.02$<br>
</div></div>