#include <libwebsockets.h>
#ifdef WAYLAND
-#include <Ecore_Wayland.h>
+#define EFL_BETA_API_SUPPORT
+#include <Ecore_Wl2.h>
#endif
#define WEBSOCKET_PORT 7681
* So here we are adjusting the height value when the requested keyboard size
* is the same with the screen size, as a workaround */
int scr_w = 0, scr_h = 0;
- ecore_wl_sync();
- ecore_wl_screen_size_get(&scr_w, &scr_h);
- if (scr_w == portrait_width && scr_h == portrait_height) {
- portrait_height -= 1;
- }
- if (scr_h == landscape_width && scr_w == landscape_height) {
- landscape_height -= 1;
+ ecore_wl2_sync();
+ Ecore_Wl2_Display *ewd = NULL;
+ if ((ewd = ecore_wl2_connected_display_get(NULL))) {
+ ecore_wl2_display_screen_size_get(ewd, &scr_w, &scr_h);
+
+ if (scr_w == portrait_width && scr_h == portrait_height) {
+ portrait_height -= 1;
+ }
+ if (scr_h == landscape_width && scr_w == landscape_height) {
+ landscape_height -= 1;
+ }
}
#endif