forked from enlightenment/efl
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:
parent
50c47e36eb
commit
46a04d8803
|
@ -12,11 +12,15 @@ static void
|
||||||
_evas_outbuf_cb_pageflip(void *data)
|
_evas_outbuf_cb_pageflip(void *data)
|
||||||
{
|
{
|
||||||
Outbuf *ob;
|
Outbuf *ob;
|
||||||
|
Ecore_Drm_Fb *fb;
|
||||||
|
|
||||||
if (!(ob = data)) return;
|
if (!(ob = data)) return;
|
||||||
|
|
||||||
DBG("Outbuf Pagelip Done");
|
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.last = ob->priv.curr;
|
||||||
ob->priv.curr = (ob->priv.curr + 1) % ob->priv.num;
|
ob->priv.curr = (ob->priv.curr + 1) % ob->priv.num;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue