return;
}
- tizen_policy_send_conformant_area(policy_surface->client->resource,
- ds_surface_get_wl_resource(policy_surface->surface), conformant_part, visible,
- x, y, w, h);
+ if (wl_resource_get_version(policy_surface->client->resource) >=
+ TIZEN_POLICY_CONFORMANT_REGION_SINCE_VERSION) {
+ tizen_policy_send_conformant_area(policy_surface->client->resource,
+ ds_surface_get_wl_resource(policy_surface->surface), conformant_part, visible,
+ x, y, w, h);
+ } else {
+ ds_err("client does not support TIZEN_POLICY_CONFORMANT_REGION."
+ "client version(%d) < server version(%d)",
+ wl_resource_get_version(policy_surface->client->resource),
+ TIZEN_POLICY_CONFORMANT_REGION_SINCE_VERSION);
+ }
}
WL_EXPORT void