ecore_wl2_window: do not clear opaque region when alpha value is changed
authorDoyoun Kang <doyoun.kang@samsung.com>
Tue, 14 Nov 2017 23:03:10 +0000 (08:03 +0900)
committerJiyoun Park <jy0703.park@samsung.com>
Tue, 19 Dec 2017 07:48:25 +0000 (16:48 +0900)
Even though the surface has alpha value, surface can set its opaque region.

Change-Id: Icbecf8be9f8592f692b31ee8639542774333ae00

src/lib/ecore_wl2/ecore_wl2_window.c

index c15249c..f68eeea 100644 (file)
@@ -1301,8 +1301,14 @@ ecore_wl2_window_transparent_set(Ecore_Wl2_Window *window, Eina_Bool transparent
      ecore_wl2_window_opaque_region_set(window, window->opaque.x,
                                         window->opaque.y, window->opaque.w,
                                         window->opaque.h);
+// TIZEN_ONLY(20170203)
+/*
    else
      ecore_wl2_window_opaque_region_set(window, 0, 0, 0, 0);
+*/
+   else if (window->surface)
+     wl_surface_set_opaque_region(window->surface, NULL);
+//
 }
 
 // TIZEN_ONLY(20171108) : Get a window's transparent property