[PATCH weston v1 10/17] window: add display_dispatch

Derek Foreman derekf at osg.samsung.com
Tue Dec 9 12:38:12 PST 2014


On 05/12/14 07:36 AM, Marek Chalupa wrote:
> Split display_run into two functions - display_run and display_dispatch.
> display_dispatch is the part that actually does something and
> display_run just calls it in a loop. Now we can dispatch toytoolkit
> events in tests (display_run is blocking, so we couldn't use that)
> 
> Signed-off-by: Marek Chalupa <mchqwerty at gmail.com>
> ---
>  clients/window.c | 76 +++++++++++++++++++++++++++++++++++---------------------
>  clients/window.h |  3 +++
>  2 files changed, 50 insertions(+), 29 deletions(-)

> +	display->running = 1;
> +	while(display->running) {

I think this needs a space to match the coding style of the rest of the
source.

> +		ret = display_dispatch(display, -1);
> +		if (ret <= 0)
> +			break;
> +	}
> +
> +	if (ret < 0)
> +		perror("Dispatching events");


More information about the wayland-devel mailing list