toytoolkit: Process deferred tasks on fifo order instead
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
This commit is contained in:
parent
1428b8ccf7
commit
6f09338b0f
@ -3992,7 +3992,7 @@ display_run(struct display *display)
|
|||||||
wl_display_flush(display->display);
|
wl_display_flush(display->display);
|
||||||
|
|
||||||
while (!wl_list_empty(&display->deferred_list)) {
|
while (!wl_list_empty(&display->deferred_list)) {
|
||||||
task = container_of(display->deferred_list.next,
|
task = container_of(display->deferred_list.prev,
|
||||||
struct task, link);
|
struct task, link);
|
||||||
wl_list_remove(&task->link);
|
wl_list_remove(&task->link);
|
||||||
task->run(task, 0);
|
task->run(task, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user