This patch allows to get the screen size and DPI properly using Wayland APIs, which makes a web page fit in the window.
#include <Ecore_X.h>
#include <wtf/HashMap.h>
#include <wtf/text/StringHash.h>
+#else
+#include <Ecore.h>
+#include <Ecore_Wayland.h>
#endif
namespace WebCore {
#ifdef HAVE_ECORE_X
return ecore_x_dpi_get();
#else
- return 160;
+ return ecore_wl_dpi_get();
#endif
}
{
int width = 0;
int height = 0;
+
#ifdef HAVE_ECORE_X
ecore_x_screen_size_get(ecore_x_default_screen_get(), &width, &height);
+#else
+ ecore_wl_screen_size_get(&width, &height);
#endif
+
return IntSize(width, height);
}