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 <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-04-16 10:23:55 -04:00
parent 50c47e36eb
commit 46a04d8803
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}