summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/Ecore_Wl2.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_wl2/Ecore_Wl2.h')
-rw-r--r--src/lib/ecore_wl2/Ecore_Wl2.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h
index 2d78a8140e..86cf12389a 100644
--- a/src/lib/ecore_wl2/Ecore_Wl2.h
+++ b/src/lib/ecore_wl2/Ecore_Wl2.h
@@ -662,6 +662,33 @@ EAPI void ecore_wl2_subsurface_place_above(Ecore_Wl2_Subsurface *subsurface, str
662 */ 662 */
663EAPI void ecore_wl2_subsurface_place_below(Ecore_Wl2_Subsurface *subsurface, struct wl_surface *surface); 663EAPI void ecore_wl2_subsurface_place_below(Ecore_Wl2_Subsurface *subsurface, struct wl_surface *surface);
664 664
665/**
666 * Enables or disables sub-surface synchronization
667 *
668 * When synchronization is enabled, surface commits on the subsurface
669 * will be cached and only applied when the parent surface's state is
670 * applied. This ensures atomic updates of the parent and all of its
671 * synchronized sub-surfaces.
672 *
673 * When synchronization is disabled, commits will apply to the pending
674 * state directly without caching, just like a normal wl_surface. If
675 * there are already cached events when this is set, those events are
676 * applied simultaneously with the desync event.
677 *
678 * Attempting to enable synchronization when the subsurface already
679 * thinks it's sync'd, or desync when it believes its desync'd, will
680 * be trivially ignored and will not generate a Wayland event.
681 *
682 * See Wayland's set_desync documentation for further details and
683 * exceptional cases.
684 *
685 * @param subsurface the subsurface
686 * @param sync true to enable synchronization, false to desynchronize
687 *
688 * @ingroup Ecore_Wl2_Subsurface_Group
689 */
690EAPI void ecore_wl2_subsurface_sync_set(Ecore_Wl2_Subsurface *subsurface, Eina_Bool sync);
691
665/* # ifdef __cplusplus */ 692/* # ifdef __cplusplus */
666/* } */ 693/* } */
667/* # endif */ 694/* # endif */