discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=f93777181fa531e67daf86cc343cb37240947089

commit f93777181fa531e67daf86cc343cb37240947089
Author: Mike Blumenkrantz <[email protected]>
Date:   Fri Mar 10 15:57:15 2017 -0500

    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
---
 src/bin/e_comp_canvas.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/bin/e_comp_canvas.c b/src/bin/e_comp_canvas.c
index 8ce6656..91aa21d 100644
--- a/src/bin/e_comp_canvas.c
+++ b/src/bin/e_comp_canvas.c
@@ -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;
 }

-- 


Reply via email to