From edbf985447ea9d5bf588584e9e3c7bf07ceb064b Mon Sep 17 00:00:00 2001 From: tasn Date: Tue, 12 Jul 2011 12:17:13 +0000 Subject: [PATCH] Elm cursor: Only set cursor if we are in X. This fixes the issue with the shot module, and possibly when running on other non-X engines when elementary is built with X support. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@61288 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/els_cursor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/els_cursor.c b/src/lib/els_cursor.c index b8e00a0..0685956 100644 --- a/src/lib/els_cursor.c +++ b/src/lib/els_cursor.c @@ -464,7 +464,7 @@ elm_object_cursor_unset(Evas_Object *obj) ecore_evas_object_cursor_set(cur->ee, NULL, ELM_OBJECT_LAYER_CURSOR, cur->hot_x, cur->hot_y); #ifdef HAVE_ELEMENTARY_X - else + else if (cur->win) ecore_x_window_cursor_set(cur->win, ECORE_X_CURSOR_X); #endif } -- 2.7.4