asdfuser pushed a commit to branch master.

commit 83dc18bf0c601a89c71f3183b735c1b7b9a34014
Author: Daniel Willmann <[email protected]>
Date:   Tue Jun 11 12:48:52 2013 +0100

    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.
    
    Signed-off-by: Daniel Willmann <[email protected]>
---
 src/lib/els_tooltip.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/els_tooltip.c b/src/lib/els_tooltip.c
index e7164a6..5fd02cd 100644
--- a/src/lib/els_tooltip.c
+++ b/src/lib/els_tooltip.c
@@ -400,7 +400,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;

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to