devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=6010d3e8c5d1e5b0ec617915ddb2cc9024197633

commit 6010d3e8c5d1e5b0ec617915ddb2cc9024197633
Author: Hermet Park <[email protected]>
Date:   Fri Aug 17 11:30:20 2018 -0400

    ecore wayland: fix a regression bug of wayland_transparent_get().
    
    Summary:
    wayland transparent func was replaced with alpha's.
    
    By this, transparent common attribute is no more valid,
    ecore_evas_transparent_get() doesn't work.
    
    This is a regression bug by 5af84afced98956198b9c316facb671e46b381c1
    
    Reviewers: ManMower, devilhorns
    
    Reviewed By: ManMower, devilhorns
    
    Subscribers: cedric, #reviewers, #committers, zmike
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D6856
---
 .../ecore_evas/engines/wayland/ecore_evas_wayland_common.c    | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c 
b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
index 10bc3a021b..91c7495244 100644
--- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
+++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
@@ -1899,12 +1899,13 @@ _ecore_evas_wayland_alpha_do(Ecore_Evas *ee, int alpha)
    if (!ee) return;
    if (ee->alpha == alpha) return;
 
+   /* alpha used for transparent as well.
+               ecore_evas_transparent_get() must be valid. */
+   ee->transparent = ee->alpha = alpha;
+
    wdata = ee->engine.data;
-   if (!wdata->sync_done)
-     {
-        ee->alpha = alpha;
-        return;
-     }
+   if (!wdata->sync_done) return;
+
    _ecore_evas_wayland_window_update(ee, wdata, alpha);
 
    _ecore_evas_wl_common_wm_rotation_protocol_set(ee);

-- 


Reply via email to