diff options
author | Shinwoo Kim <cinoo.kim@samsung.com> | 2020-08-07 11:59:49 +0900 |
---|---|---|
committer | Shinwoo Kim <cinoo.kim@samsung.com> | 2020-08-07 12:00:13 +0900 |
commit | 0e91ec6c78b989dd09610902a5ef8a061a8ee240 (patch) | |
tree | 89a16357a24c6e9b0843651df3267e42da6d6090 /src/lib/ecore_wl2/ecore_wl2_subsurf.c | |
parent | 67cd017aac4a83a8f83f1ed84f3ea461c1c0b416 (diff) | |
download | efl-0e91ec6c78b989dd09610902a5ef8a061a8ee240.tar.gz |
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 <shiin.lee@samsung.com>
Reviewers: Hermet, zmike, devilhorns, raster
Reviewed By: devilhorns
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D12098
Diffstat (limited to 'src/lib/ecore_wl2/ecore_wl2_subsurf.c')
-rw-r--r-- | src/lib/ecore_wl2/ecore_wl2_subsurf.c | 3 |
1 files changed, 3 insertions, 0 deletions
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)); |