ecore-wl2: Port Ecore_Evas engines to use Ecore_Wl2 code
authorChris Michael <cp.michael@samsung.com>
Mon, 28 Sep 2015 17:42:38 +0000 (13:42 -0400)
committerChris Michael <cp.michael@samsung.com>
Thu, 3 Dec 2015 17:05:01 +0000 (12:05 -0500)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_egl.c
src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_shm.c

index 1659988..e9fb914 100644 (file)
@@ -1024,7 +1024,7 @@ _ecore_evas_wl_common_name_class_set(Ecore_Evas *ee, const char *n, const char *
      }
 
    if (ee->prop.clas)
-     ecore_wl2_window_class_set(wdata->win, ee->prop.clas);
+     ecore_wl2_window_class_name_set(wdata->win, ee->prop.clas);
 }
 
 void
index 8f4fea9..ae4c4bc 100644 (file)
@@ -149,6 +149,13 @@ ecore_evas_wayland_egl_new_internal(const char *disp_name, unsigned int parent,
         return NULL;
      }
 
+   ewd = ecore_wl2_display_connect(disp_name);
+   if (!ewd)
+     {
+        ERR("Failed to connect to Wayland Display %s", disp_name);
+        return NULL;
+     }
+
    if (!(ee = calloc(1, sizeof(Ecore_Evas))))
      {
         ERR("Failed to allocate Ecore_Evas");
index c516de6..2301c68 100644 (file)
@@ -148,6 +148,13 @@ ecore_evas_wayland_shm_new_internal(const char *disp_name, unsigned int parent,
         return NULL;
      }
 
+   ewd = ecore_wl2_display_connect(disp_name);
+   if (!ewd)
+     {
+        ERR("Failed to connect to Wayland Display %s", disp_name);
+        return NULL;
+     }
+
    if (!(ee = calloc(1, sizeof(Ecore_Evas))))
      {
         ERR("Failed to allocate Ecore_Evas");