summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinwoo Kim <cinoo.kim@samsung.com>2020-08-07 11:59:49 +0900
committerShinwoo Kim <cinoo.kim@samsung.com>2020-08-07 12:00:13 +0900
commit0e91ec6c78b989dd09610902a5ef8a061a8ee240 (patch)
tree89a16357a24c6e9b0843651df3267e42da6d6090
parent67cd017aac4a83a8f83f1ed84f3ea461c1c0b416 (diff)
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
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_subsurf.c3
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)
65 goto sub_surf_err; 65 goto sub_surf_err;
66 } 66 }
67 67
68 /* A sub-surface is initially in the synchronized mode. */
69 subsurf->sync = EINA_TRUE;
70
68 window->subsurfs = 71 window->subsurfs =
69 eina_inlist_append(window->subsurfs, EINA_INLIST_GET(subsurf)); 72 eina_inlist_append(window->subsurfs, EINA_INLIST_GET(subsurf));
70 73