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);