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
This commit is contained in:
Shinwoo Kim 2020-08-07 11:59:49 +09:00
parent 67cd017aac
commit 0e91ec6c78
1 changed files with 3 additions and 0 deletions

View File

@ -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));