mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
wlr_scene: Clarify surface commit frame events
This commit is contained in:
parent
35d94d779c
commit
2e06ff5688
1 changed files with 5 additions and 4 deletions
|
@ -84,10 +84,11 @@ static void handle_scene_surface_surface_commit(
|
||||||
|
|
||||||
set_buffer_with_surface_state(scene_buffer, surface->surface);
|
set_buffer_with_surface_state(scene_buffer, surface->surface);
|
||||||
|
|
||||||
// Even if the surface hasn't submitted damage, schedule a new frame if
|
// If the surface has requested a frame done event, honour that. The
|
||||||
// the client has requested a wl_surface.frame callback. Check if the node
|
// frame_callback_list will be populated in this case. We should only
|
||||||
// is visible. If not, the client will never receive a frame_done event
|
// schedule the frame however if the node is enabled and there is an
|
||||||
// anyway so it doesn't make sense to schedule here.
|
// output intersecting, otherwise the frame done events would never reach
|
||||||
|
// the surface anyway.
|
||||||
int lx, ly;
|
int lx, ly;
|
||||||
bool enabled = wlr_scene_node_coords(&scene_buffer->node, &lx, &ly);
|
bool enabled = wlr_scene_node_coords(&scene_buffer->node, &lx, &ly);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue