We don't want to call X functions (and segfault) if X is not actually
running.
Backport
83dc18bf0c601a89c71f3183b735c1b7b9a34014
Change-Id: I1ab4ee52387c37df834ced09275351f59a71b227
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
Evas_Object *win = elm_object_top_widget_get(tt->owner);
#ifdef HAVE_ELEMENTARY_X
Ecore_X_Window xwin = elm_win_xwindow_get(win);
- ecore_x_pointer_xy_get(xwin, &px, &py);
+ if (xwin)
+ ecore_x_pointer_xy_get(xwin, &px, &py);
#endif
elm_win_screen_position_get(win, &x, &y);
ox += x;