Elm cursor: Only set cursor if we are in X.
authorTom Hacohen <tom@stosb.com>
Tue, 12 Jul 2011 12:17:13 +0000 (12:17 +0000)
committerTom Hacohen <tom@stosb.com>
Tue, 12 Jul 2011 12:17:13 +0000 (12:17 +0000)
This fixes the issue with the shot module, and possibly when
running on other non-X engines when elementary is built with X support.

SVN revision: 61288

src/lib/els_cursor.c

index b8e00a0..0685956 100644 (file)
@@ -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
      }