Apply EFL 1.20 upgrade 96/175396/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Tue, 10 Apr 2018 05:13:44 +0000 (14:13 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Tue, 10 Apr 2018 05:14:29 +0000 (14:14 +0900)
Change-Id: Icafcba8df9e04bb1d3283cb0de869b3cafe917cb

src/legacy_support/websocket.cpp

index 6f5dee2..ada9e47 100644 (file)
@@ -36,7 +36,8 @@
 #include <libwebsockets.h>
 
 #ifdef WAYLAND
-#include <Ecore_Wayland.h>
+#define EFL_BETA_API_SUPPORT
+#include <Ecore_Wl2.h>
 #endif
 
 #define WEBSOCKET_PORT 7681
@@ -1168,13 +1169,17 @@ void CWebHelperAgentWebSocket::handle_recved_message(ISE_MESSAGE &message)
              * 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