From b9f415cbad47412bfb218cf7375d0c2856a27d1b Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Mon, 7 May 2018 17:21:18 -0400 Subject: [PATCH] present: Fix swapping of PresentCompleteNotify events The code would fall through to the PresentIdleNotify case, and nothing good would come of it. Signed-off-by: Adam Jackson Reviewed-by: Alan Coopersmith --- present/present_event.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/present/present_event.c b/present/present_event.c index c222dd5ff..9aebfdfce 100644 --- a/present/present_event.c +++ b/present/present_event.c @@ -91,6 +91,7 @@ present_event_swap(xGenericEvent *from, xGenericEvent *to) swapl(&c->serial); swapll(&c->ust); swapll(&c->msc); + break; } case PresentIdleNotify: { @@ -99,6 +100,7 @@ present_event_swap(xGenericEvent *from, xGenericEvent *to) swapl(&c->window); swapl(&c->serial); swapl(&c->idle_fence); + break; } } }