From f8ae56490664e716ea1ad701172c7aaa39e9a5ab Mon Sep 17 00:00:00 2001
From: Simon Ser <contact@emersion.fr>
Date: Mon, 5 Sep 2022 15:34:01 +0200
Subject: compositor: fix wlr_surface_set_role return value docs

It returns a bool, not an int.
---
 include/wlr/types/wlr_compositor.h | 4 ++--
 1 file 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,
-- 
cgit v1.2.3