aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2023-02-04 02:57:42 -0500
committerAlexander Orzechowski <alex@ozal.ski>2023-02-04 02:57:42 -0500
commit7b32c25a4fbdcde4197a06c8e0ff638c54753bd7 (patch)
treeef20746991d7ecc9e70db0f2a4afb3e58d8e3966 /include/wlr
parentdc7b5ab21e366c7cc6deef6a76005c851e7825d3 (diff)
wlr_scene: Rename wlr_scene_surface_from_buffer
This renames it to wlr_scene_surface_try_from_buffer to be more clear that this function can return NULL. This is inline with the rest of wlroots[1]. [1] https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3991
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_scene.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h
index 659a8b33..b5d37697 100644
--- a/include/wlr/types/wlr_scene.h
+++ b/include/wlr/types/wlr_scene.h
@@ -302,7 +302,7 @@ struct wlr_scene_buffer *wlr_scene_buffer_from_node(struct wlr_scene_node *node)
* If this buffer is backed by a surface, then the struct wlr_scene_surface is
* returned. If not, NULL will be returned.
*/
-struct wlr_scene_surface *wlr_scene_surface_from_buffer(
+struct wlr_scene_surface *wlr_scene_surface_try_from_buffer(
struct wlr_scene_buffer *scene_buffer);
/**