#ifdef HAVE_ECORE_X
#include <Ecore_X.h>
+#else
+#include <Ecore.h>
+#include <Ecore_Wayland.h>
#endif
#if ENABLE(TIZEN_WEBKIT2)
FloatRect screenRect(Widget* widget)
{
-#ifdef HAVE_ECORE_X
#if !ENABLE(ORIENTATION_EVENTS)
UNUSED_PARAM(widget);
#endif
- // Fallback to realistic values if the EcoreX call fails
+
+ // Fallback to realistic values if the Ecore call fails
// and we cannot accurately detect the screen size.
int width = 800;
int height = 600;
+
+#ifdef HAVE_ECORE_X
ecore_x_screen_size_get(ecore_x_default_screen_get(), &width, &height);
#if OS(TIZEN)
width = height;
height = temp;
}
-#endif
+#endif // OS(TIZEN)
return FloatRect(0, 0, width, height);
-#else
- if (!widget || !widget->evas())
- return FloatRect();
+#else // HAVE_ECORE_X
- int x, y, w, h;
- ecore_evas_screen_geometry_get(ecore_evas_ecore_evas_get(widget->evas()), &x, &y, &w, &h);
- return FloatRect(x, y, w, h);
+ ecore_wl_screen_size_get(&width, &height);
+
+ return FloatRect(0, 0, width, height);
#endif
}
#ifdef HAVE_ECORE_X
#include <Ecore_X.h>
+#else
+#include <Ecore_Wayland.h>
#endif
#if USE(ACCELERATED_COMPOSITING)
eina_shutdown();
return 1;
}
+#else
+ if(!ecore_wl_init(0)) {
+ ecore_shutdown();
+ eina_shutdown();
+ return 1;
+ }
#endif
if (!ecore_file_init()) {
#ifdef HAVE_ECORE_X
ecore_x_shutdown();
+#else
+ ecore_wl_shutdown();
#endif
ecore_shutdown();
eina_shutdown();
ecore_file_shutdown();
#ifdef HAVE_ECORE_X
ecore_x_shutdown();
+#else
+ ecore_wl_shutdown();
#endif
ecore_shutdown();
eina_shutdown();