ecore-evas: account for framespace when processing mouse movement
authorMike Blumenkrantz <zmike@osg.samsung.com>
Fri, 12 May 2017 16:08:32 +0000 (12:08 -0400)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Fri, 12 May 2017 16:08:25 +0000 (12:08 -0400)
in some cases (e.g., the mouse-out emission from the ee wl engine),
this was calculating wrong coordinates, which would lead to a broken
chain of events like:
  object mouse out -> object mouse in -> object mouse out
which would severely break some apps

@fix

src/lib/ecore_evas/ecore_evas.c

index 16a58c2..ce41475 100644 (file)
@@ -3300,8 +3300,8 @@ _ecore_evas_mouse_move_process_internal(Ecore_Evas *ee,
    if (!feed) return;
    if (ee->rotation == 0)
      {
-        evt_x = x;
-        evt_y = y;
+        evt_x = x - fx;
+        evt_y = y - fy;
      }
    else if (ee->rotation == 90)
      {