diff options
author | Daniel Willmann <d.willmann@samsung.com> | 2013-06-11 12:48:52 +0100 |
---|---|---|
committer | Daniel Willmann <d.willmann@samsung.com> | 2013-06-11 14:33:53 +0100 |
commit | 9acdf6a9e2486f855e82a16a89a57ca032ab3f11 (patch) | |
tree | 04d8bc8eed2eb517a2cefad4dd25100bbf254b74 | |
parent | 2a6c6a38b31f5918908e5aaafe2822e08a446c3c (diff) | |
download | elementary-9acdf6a9e2486f855e82a16a89a57ca032ab3f11.tar.gz |
els_tooltip: Only call ecore_x_pointer_xy_get() if we're in X
We don't want to call X functions (and segfault) if X is not actually
running.
Backport 83dc18bf0c601a89c71f3183b735c1b7b9a34014
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
-rw-r--r-- | src/lib/els_tooltip.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/els_tooltip.c b/src/lib/els_tooltip.c index 677367b96..f8d0bf966 100644 --- a/src/lib/els_tooltip.c +++ b/src/lib/els_tooltip.c @@ -396,7 +396,8 @@ _elm_tooltip_reconfigure(Elm_Tooltip *tt) 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; |