From 6f09338b0fe7d76de47a7d4fb8863699951acfc1 Mon Sep 17 00:00:00 2001 From: Tiago Vignatti Date: Thu, 27 Sep 2012 14:46:23 +0300 Subject: [PATCH] toytoolkit: Process deferred tasks on fifo order instead Signed-off-by: Tiago Vignatti --- clients/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/window.c b/clients/window.c index f3b61dec..575d3cb7 100644 --- a/clients/window.c +++ b/clients/window.c @@ -3992,7 +3992,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);