From: Chris Michael Date: Thu, 26 Feb 2015 15:44:59 +0000 (-0500) Subject: elementary: Fix issue of cursor getting unset on DRM engine X-Git-Tag: v1.14.0-alpha1~149 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0fd28a07f8a27b6ac25435db551cf7dbd184f349;p=platform%2Fupstream%2Felementary.git elementary: Fix issue of cursor getting unset on DRM engine 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 --- diff --git a/src/lib/els_cursor.c b/src/lib/els_cursor.c index dd17984..0825d56 100644 --- a/src/lib/els_cursor.c +++ b/src/lib/els_cursor.c @@ -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;