aboutsummaryrefslogtreecommitdiff
path: root/tinywl
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 /tinywl
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 'tinywl')
-rw-r--r--tinywl/tinywl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tinywl/tinywl.c b/tinywl/tinywl.c
index 45b41877..ea810571 100644
--- a/tinywl/tinywl.c
+++ b/tinywl/tinywl.c
@@ -348,7 +348,7 @@ static struct tinywl_view *desktop_view_at(
}
struct wlr_scene_buffer *scene_buffer = wlr_scene_buffer_from_node(node);
struct wlr_scene_surface *scene_surface =
- wlr_scene_surface_from_buffer(scene_buffer);
+ wlr_scene_surface_try_from_buffer(scene_buffer);
if (!scene_surface) {
return NULL;
}