surface: make wlr_surface_create private

This is not meant to be exposed in the public API, just like
wlr_region_create [1].

[1]: https://github.com/swaywm/wlroots/pull/2662
This commit is contained in:
Simon Ser 2021-03-30 10:17:15 +02:00
parent e76583f1ad
commit c430cd7d53
4 changed files with 19 additions and 12 deletions

View file

@ -187,16 +187,6 @@ struct wlr_subsurface {
typedef void (*wlr_surface_iterator_func_t)(struct wlr_surface *surface,
int sx, int sy, void *data);
struct wlr_renderer;
/**
* Create a new surface resource with the provided new ID. If `resource_list`
* is non-NULL, adds the surface's resource to the list.
*/
struct wlr_surface *wlr_surface_create(struct wl_client *client,
uint32_t version, uint32_t id, struct wlr_renderer *renderer,
struct wl_list *resource_list);
/**
* Set the lifetime role for this surface. Returns 0 on success or -1 if the
* role cannot be set.