[PATCH weston] toytoolkit: Process deferred tasks on fifo order instead

Kristian Høgsberg hoegsberg at gmail.com
Thu Sep 27 18:23:53 PDT 2012


On Thu, Sep 27, 2012 at 02:46:23PM +0300, Tiago Vignatti wrote:
> Signed-off-by: Tiago Vignatti <tiago.vignatti at intel.com>

Yeah, that makes sense.

Kristian

> ---
>  clients/window.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/clients/window.c b/clients/window.c
> index 93d2282..08828c2 100644
> --- a/clients/window.c
> +++ b/clients/window.c
> @@ -3980,7 +3980,7 @@ display_run(struct display *display)
>  		wl_display_flush(display->display);
>  
>  		while (!wl_list_empty(&display->deferred_list)) {
> -			task = container_of(display->deferred_list.next,
> +			task = container_of(display->deferred_list.prev,
>  					    struct task, link);
>  			wl_list_remove(&task->link);
>  			task->run(task, 0);
> -- 
> 1.7.9.5
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list