goto fail;
}
- if (ec->explicit_sync_surface)
+ if (e_client_explicit_sync_get(ec))
{
wl_resource_post_error(resource,
ZWP_LINUX_EXPLICIT_SYNCHRONIZATION_V1_ERROR_SYNCHRONIZATION_EXISTS,
explicit_sync_surface,
_e_explicit_sync_surface_cb_resource_destroy);
- ec->explicit_sync_surface = explicit_sync_surface;
explicit_sync_surface->ec = ec;
explicit_sync_surface->ec_delfn = e_object_delfn_add(E_OBJECT(ec),
_e_explicit_sync_surface_cb_ec_free,
explicit_sync_surface->before_surface_commit_hook = e_comp_wl_hook_add(E_COMP_WL_HOOK_CLIENT_BEFORE_SURFACE_COMMIT,
_e_explicit_sync_surface_cb_before_surface_commit, explicit_sync_surface);
+ e_client_explicit_sync_set(ec, EINA_TRUE);
+
EX_SYNC_TRACE("Explicit_Sync Surface:%p Create", explicit_sync_surface->ec, explicit_sync_surface);
return;