wayland_egl: if surface is null(means ecore_evas is hidden), skip evas_engine_info_se... 89/81689/2
authorSeunghun Lee <shiin.lee@samsung.com>
Thu, 28 Jul 2016 01:45:45 +0000 (10:45 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Wed, 3 Aug 2016 06:34:18 +0000 (23:34 -0700)
wayland spec is not define whether wl_egl_window_create() can use null surface or not.
so current tizen device does not allow to create null surface wayland window.

reference: 038fb1cd9d709f47769c91289c913cf62067cdd9

Change-Id: I9fb4374caf8feec3f15fc5cf850ee31e3a350158

src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c

index d72f015..fcba9a2 100644 (file)
@@ -553,7 +553,12 @@ _rotation_do(Ecore_Evas *ee, int rotation, int resize)
 
         einfo->info.rotation = rotation;
 
-        if (!evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo))
+        /* TIZEN_ONLY(20160728):
+             wayland spec is not define whether wl_egl_window_create() can use null surface or not.
+             so current tizen device does not allow to create null surface wayland window.
+        */
+        if ((einfo->info.surface) &&
+            (!evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo)))
           ERR("evas_engine_info_set() for engine '%s' failed.", ee->driver);
 #endif
      }