From c2f2b25ab55c67f9f3ad07c02fa746eae7c61196 Mon Sep 17 00:00:00 2001 From: Louis-Francis Ratté-Boulianne Date: Wed, 27 Sep 2017 01:19:58 -0400 Subject: present: Check the whole exec queue on event MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Later events are sometimes added in front of the queue (e.g. if page flipping fails) so we need to check the whole queue on event. Signed-off-by: Louis-Francis Ratté-Boulianne Reviewed-by: Michel Dänzer --- present/present.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'present/present.c') diff --git a/present/present.c b/present/present.c index aa9c041df..176e89c0b 100644 --- a/present/present.c +++ b/present/present.c @@ -527,8 +527,6 @@ present_event_notify(uint64_t event_id, uint64_t ust, uint64_t msc) present_execute(vblank, ust, msc); return; } - if (match < 0) - break; } xorg_list_for_each_entry(vblank, &present_flip_queue, event_queue) { if (vblank->event_id == event_id) { @@ -991,8 +989,6 @@ present_abort_vblank(ScreenPtr screen, RRCrtcPtr crtc, uint64_t event_id, uint64 vblank->queued = FALSE; return; } - if (match < 0) - break; } xorg_list_for_each_entry(vblank, &present_flip_queue, event_queue) { if (vblank->event_id == event_id) { -- cgit v1.2.3