mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-02-28 01:41:13 -05:00
shell: Use new try_from surface getters
This commit is contained in:
parent
8df120dafd
commit
4ea6a8b1a7
2 changed files with 10 additions and 5 deletions
2
seat.c
2
seat.c
|
|
@ -65,7 +65,7 @@ desktop_view_at(struct cg_server *server, double lx, double ly, struct wlr_surfa
|
|||
}
|
||||
|
||||
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);
|
||||
struct wlr_scene_surface *scene_surface = wlr_scene_surface_try_from_buffer(scene_buffer);
|
||||
if (!scene_surface) {
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue