unbreak tooltip placement

SVN revision: 65553
This commit is contained in:
Mike Blumenkrantz 2011-11-24 02:42:46 +00:00
parent b3e0c80cfa
commit 54efa8cf9a
1 changed files with 3 additions and 4 deletions

View File

@ -239,9 +239,6 @@ _elm_tooltip_reconfigure(Elm_Tooltip *tt)
Evas_Coord eminw, eminh, ominw, ominh;
double rel_x, rel_y;
Eina_Bool inside_eventarea;
#ifdef HAVE_ELEMENTARY_X
Ecore_X_Window xwin = 0;
#endif
_elm_tooltip_reconfigure_job_stop(tt);
@ -359,10 +356,12 @@ _elm_tooltip_reconfigure(Elm_Tooltip *tt)
if (tt->tt_win)
{
int x, y;
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);
#endif
elm_win_screen_position_get(elm_object_top_widget_get(tt->owner), &x, &y);
elm_win_screen_position_get(win, &x, &y);
ox += x;
oy += y;
}