manually center pointer using compositor size on init when not restarting

when using fake screens this ensures that a viewported canvas will have
the expected mouse position
This commit is contained in:
Mike Blumenkrantz 2017-03-10 15:57:15 -05:00
parent 802136f5f2
commit f93777181f
1 changed files with 2 additions and 0 deletions

View File

@ -389,6 +389,8 @@ e_comp_canvas_init(int w, int h)
evas_event_callback_add(e_comp->evas, EVAS_CALLBACK_RENDER_PRE, _e_comp_canvas_prerender, NULL);
ecore_evas_resize(e_comp->ee, w, h);
if ((!after_restart) || (!e_comp_x))
ecore_evas_pointer_warp(e_comp->ee, e_comp->w / 2, e_comp->h / 2);
return EINA_TRUE;
}