From 0fd28a07f8a27b6ac25435db551cf7dbd184f349 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Thu, 26 Feb 2015 10:44:59 -0500 Subject: [PATCH] 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 --- src/lib/els_cursor.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- 2.7.4