ecore-wl2 : apply ecore-wl2 feature for EFL120 migration 99/168999/1
authorWonsik Jung <sidein@samsung.com>
Thu, 1 Feb 2018 20:34:30 +0000 (05:34 +0900)
committerWonsik Jung <sidein@samsung.com>
Thu, 1 Feb 2018 20:35:22 +0000 (05:35 +0900)
Change-Id: I8d3529c0ae5fc3a700467fdc73a4d67caedfc6e9

build/tizen/CMakeLists.txt
packaging/widget-viewer-dali.spec
widget_viewer_dali/internal/widget_view/widget_view_impl.cpp

index a27a930f792e7f5260de3be95519de3faff1e01d..7d3dd11ed44bf76b51109e77668731343f6b06e1 100644 (file)
@@ -22,7 +22,7 @@ pkg_check_modules(viewer_dali REQUIRED
        dali-adaptor
        dali-toolkit
        cynara-client
-       ecore-wayland
+        ecore-wl2
        ecore-input
        tizen-remote-surface-client
        screen_connector_watcher
index ebfc6f51b5f33f60b43b0524428920777e25b31a..7731d3a09839fbd36c1918b16eaf3bfe105c2850 100644 (file)
@@ -19,7 +19,7 @@ BuildRequires: pkgconfig(dali-core)
 BuildRequires: pkgconfig(dali-adaptor)
 BuildRequires: pkgconfig(dali-toolkit)
 BuildRequires: pkgconfig(cynara-client)
-BuildRequires: pkgconfig(ecore-wayland)
+BuildRequires: pkgconfig(ecore-wl2)
 BuildRequires: pkgconfig(wayland-tbm-client)
 BuildRequires: pkgconfig(screen_connector_watcher)
 
index 422fb1696796539925c60807d789c6041afc987a..202e5ab06d10a9fe0695056dbf990589fa45767e 100644 (file)
 #include <dali/devel-api/events/touch-event-devel.h>
 #include <dali/devel-api/events/key-event-devel.h>
 #include <string.h>
-#include <Ecore_Wayland.h>
+#ifndef EFL_BETA_API_SUPPORT
+#define EFL_BETA_API_SUPPORT
+#endif
+#include <Ecore_Wl2.h>
 #include <Ecore_Input.h>
 #include <widget_service.h>
 #include <widget_instance.h>
@@ -154,18 +157,19 @@ static void FindKeyCode( struct xkb_keymap* keyMap, xkb_keycode_t key, void* dat
 static bool GetKeyCode( std::string keyName, int32_t& keyCode )
 {
   xkb_keymap* keyMap = NULL;
-  Ecore_Wl_Input* ecoreWlInput = NULL;
+  Ecore_Wl2_Input* ecoreWlInput = NULL;
   xkb_keysym_t sym = XKB_KEY_NoSymbol;
   KeyCodeMap foundKeyCode;
 
-  ecoreWlInput = ecore_wl_input_get();
+  Ecore_Wl2_Display *wl2_display = ecore_wl2_connected_display_get(NULL);
+  ecoreWlInput = ecore_wl2_input_default_input_get(wl2_display);
   if( !ecoreWlInput )
   {
-    DALI_LOG_ERROR( "Failed to get Ecore_Wl_Input in WidgetView\n" );
+    DALI_LOG_ERROR( "Failed to get Ecore_Wl2_Input in WidgetView\n" );
     return false;
   }
 
-  keyMap = ecore_wl_input_keymap_get( ecoreWlInput );
+  keyMap = ecore_wl2_input_keymap_get( ecoreWlInput );
   if( !keyMap )
   {
     DALI_LOG_ERROR( "Failed to get keymap in WidgetView\n" );