From 46a04d8803ec3dd0927fd8cf44368f65e8bda8fa Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Thu, 16 Apr 2015 10:23:55 -0400 Subject: [PATCH] evas-drm: Mark the Ecore_Drm_Fb as complete when we get the page flip event. Summary: This fixes Ticket T2289 where the mouse pointer was leaving a trail while moving. This was caused due to not waiting for the page flip to complete @fix Signed-off-by: Chris Michael --- src/modules/evas/engines/drm/evas_outbuf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/evas/engines/drm/evas_outbuf.c b/src/modules/evas/engines/drm/evas_outbuf.c index a27ac7efa2..c7a65be85c 100644 --- a/src/modules/evas/engines/drm/evas_outbuf.c +++ b/src/modules/evas/engines/drm/evas_outbuf.c @@ -12,11 +12,15 @@ static void _evas_outbuf_cb_pageflip(void *data) { Outbuf *ob; + Ecore_Drm_Fb *fb; if (!(ob = data)) return; DBG("Outbuf Pagelip Done"); + if ((fb = ob->priv.buffer[ob->priv.curr])) + fb->pending_flip = EINA_FALSE; + ob->priv.last = ob->priv.curr; ob->priv.curr = (ob->priv.curr + 1) % ob->priv.num; }