elementary: Fix issue of cursor getting unset on DRM engine
authorChris Michael <cp.michael@samsung.com>
Thu, 26 Feb 2015 15:44:59 +0000 (10:44 -0500)
committerChris Michael <cp.michael@samsung.com>
Thu, 26 Feb 2015 15:44:59 +0000 (10:44 -0500)
Summary: When running the E startup wizard using DRM, the cursor ends
up getting unset (and never reset) due to the DRM engine not having a
wayland window. To fix this, we will test the the engine being DRM and
if so then set the cursor->use_engine to false so that it defaults to
ecore_evas_object_cursor calls (which work on DRM).

@fix

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

index dd17984..0825d56 100644 (file)
@@ -365,6 +365,14 @@ _elm_cursor_cur_set(Elm_Cursor *cur)
         cur->use_engine = EINA_TRUE;
      }
 
+#ifdef HAVE_ELEMENTARY_DRM
+   const char *engine_name;
+
+   engine_name = ecore_evas_engine_name_get(cur->ee);
+   if ((engine_name) && (!strcmp(engine_name, ELM_DRM)))
+     cur->use_engine = EINA_FALSE;
+#endif
+
    if (cur->use_engine)
      {
         Evas_Object *top;