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.

SVN revision: 61288
This commit is contained in:
Tom Hacohen 2011-07-12 12:17:13 +00:00
parent aa52a73fcd
commit 13904fe136
1 changed files with 1 additions and 1 deletions

View 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
}