elementary: Don't always show pointer object
authorChris Michael <cp.michael@samsung.com>
Mon, 24 Oct 2016 13:47:47 +0000 (09:47 -0400)
committerChris Michael <cp.michael@samsung.com>
Mon, 24 Oct 2016 17:08:00 +0000 (13:08 -0400)
If we are using softcursor mode during intercept show, then we should
check that the pointer is actually in the canvas before showing it
else we end up with mouse pointers drawn on the canvas even when the
mouse itself is nowhere near a window.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/elementary/efl_ui_win.c

index df7702d..4f62271 100644 (file)
@@ -2773,7 +2773,8 @@ _elm_win_obj_intercept_show(void *data,
 #if 0
         ecore_evas_show(sd->pointer.ee);
 #endif
-        evas_object_show(sd->pointer.obj);
+        if (evas_pointer_inside_get(sd->evas))
+          evas_object_show(sd->pointer.obj);
      }
    evas_object_show(obj);
 #ifdef ELEMENTARY_X