diff options
author | Simon Ser <contact@emersion.fr> | 2022-09-05 15:34:01 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-09-05 15:34:19 +0200 |
commit | f8ae56490664e716ea1ad701172c7aaa39e9a5ab (patch) | |
tree | 6b6db324d262c1f3d5fe3804292b1e0131db1a4d | |
parent | 2e06ff5688646443012f6e6e4f13dea068c6ec50 (diff) |
compositor: fix wlr_surface_set_role return value docs
It returns a bool, not an int.
-rw-r--r-- | include/wlr/types/wlr_compositor.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/wlr/types/wlr_compositor.h b/include/wlr/types/wlr_compositor.h index b0d1eed6..50a401ba 100644 --- a/include/wlr/types/wlr_compositor.h +++ b/include/wlr/types/wlr_compositor.h @@ -185,8 +185,8 @@ typedef void (*wlr_surface_iterator_func_t)(struct wlr_surface *surface, int sx, int sy, void *data); /** - * Set the lifetime role for this surface. Returns 0 on success or -1 if the - * role cannot be set. + * Set the lifetime role for this surface. Returns true on success or false if + * the role cannot be set. */ bool wlr_surface_set_role(struct wlr_surface *surface, const struct wlr_surface_role *role, void *role_data, |