use new elm_win function to find screen geometry instead of ecore_x
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 21 Nov 2011 19:55:13 +0000 (19:55 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 21 Nov 2011 19:55:13 +0000 (19:55 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@65495 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/els_tooltip.c

index 87bc6ed..832a8bc 100644 (file)
@@ -349,18 +349,9 @@ _elm_tooltip_reconfigure(Elm_Tooltip *tt)
 
    edje_object_size_min_restricted_calc(tt->tooltip, &tw, &th, ominw, ominh);
 
-#ifdef HAVE_ELEMENTARY_X
    if (tt->tt_win)
-     {
-        xwin = elm_win_xwindow_get(elm_object_top_widget_get(tt->owner));
-        if (xwin)
-          {
-             xwin = ecore_x_window_root_get(xwin);
-             ecore_x_randr_screen_current_size_get(xwin, &cw, &ch, NULL, NULL);
-          }
-     }
+     elm_win_screen_size_get(elm_object_top_widget_get(tt->owner), &cw, &ch, NULL, NULL);
    if (!cw)
-#endif
      evas_output_size_get(tt->tt_evas ?: tt->evas, &cw, &ch);
 
    evas_object_geometry_get(tt->eventarea, &ox, &oy, &ow, &oh);