kimcinoo pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=0e91ec6c78b989dd09610902a5ef8a061a8ee240

commit 0e91ec6c78b989dd09610902a5ef8a061a8ee240
Author: Shinwoo Kim <[email protected]>
Date:   Fri Aug 7 11:59:49 2020 +0900

    ecore_wl2_subsurf: follow wayland spec for sync
    
    Summary:
    By default a sub-suface is synchronized mode.
    So when a sub-surface is created, its sync value should be TRUE.
    
    If the E works as specification, user cannot make it work as
    desynchronized mode by calling subsurface.set_sync(FALSE).
    
    [Reference]
    https://github.com/wayland-project/wayland/blob/master/protocol/wayland.xml
    is telling "A sub-surface is initially in the synchronized mode."
    
    signed-off-by: Shawn Lee <[email protected]>
    
    Reviewers: Hermet, zmike, devilhorns, raster
    
    Reviewed By: devilhorns
    
    Subscribers: cedric, #reviewers, #committers
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D12098
---
 src/lib/ecore_wl2/ecore_wl2_subsurf.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/lib/ecore_wl2/ecore_wl2_subsurf.c 
b/src/lib/ecore_wl2/ecore_wl2_subsurf.c
index 980c2eed47..5409fd2b26 100644
--- a/src/lib/ecore_wl2/ecore_wl2_subsurf.c
+++ b/src/lib/ecore_wl2/ecore_wl2_subsurf.c
@@ -65,6 +65,9 @@ ecore_wl2_subsurface_new(Ecore_Wl2_Window *window)
         goto sub_surf_err;
      }
 
+   /* A sub-surface is initially in the synchronized mode. */
+   subsurf->sync = EINA_TRUE;
+
    window->subsurfs =
      eina_inlist_append(window->subsurfs, EINA_INLIST_GET(subsurf));
 

-- 


Reply via email to