mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-10-29 05:40:19 -04:00
Use scene-graph helpers for sub-surfaces
Delegate sub-surface handling to wlr_scene_surface_tree_create. References: https://github.com/swaywm/wlroots/pull/3128
This commit is contained in:
parent
fb3dc58237
commit
128fa90ea1
6 changed files with 16 additions and 95 deletions
4
output.c
4
output.c
|
|
@ -164,7 +164,7 @@ scan_out_primary_view(struct cg_output *output)
|
|||
}
|
||||
|
||||
size_t n_surfaces = 0;
|
||||
wlr_scene_node_for_each_surface(&view->scene_surface->node, count_surface_iterator, &n_surfaces);
|
||||
wlr_scene_node_for_each_surface(view->scene_node, count_surface_iterator, &n_surfaces);
|
||||
if (n_surfaces > 1) {
|
||||
return false;
|
||||
}
|
||||
|
|
@ -312,6 +312,8 @@ damage_finish:
|
|||
frame_done:
|
||||
clock_gettime(CLOCK_MONOTONIC, &frame_data.when);
|
||||
send_frame_done(output, &frame_data);
|
||||
|
||||
wlr_output_damage_add_whole(output->damage);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue