ecore-evas-wayland: Fix issue of setting NULL cursor object
authorChris Michael <cp.michael@samsung.com>
Mon, 4 May 2015 16:37:56 +0000 (12:37 -0400)
committerChris Michael <cp.michael@samsung.com>
Mon, 4 May 2015 16:38:56 +0000 (12:38 -0400)
Summary: If we are calling ecore_evas_object_cursor_set with a NULL
object, then we need to inform the ecore_wayland window that we no
longer have a cursor surface.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c

index 926269d..4c26ece 100644 (file)
@@ -1222,6 +1222,7 @@ _ecore_evas_wl_common_object_cursor_set(Ecore_Evas *ee, Evas_Object *obj, int la
    old = ee->prop.cursor.object;
    if (obj == NULL)
      {
+        ecore_wl_window_pointer_set(wdata->win, NULL, 0, 0);
         ee->prop.cursor.object = NULL;
         ee->prop.cursor.layer = 0;
         ee->prop.cursor.hot.x = 0;