mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-13 08:22:16 -04:00
Merge branch 'fix/scene_frame_pacing_output_schedule_frame' into 'master'
scene/surface.c: schedule on frame pacing output See merge request wlroots/wlroots!5339
This commit is contained in:
commit
dd1e8cf976
1 changed files with 3 additions and 4 deletions
|
|
@ -361,10 +361,9 @@ static void handle_scene_surface_surface_commit(
|
|||
// the surface anyway.
|
||||
int lx, ly;
|
||||
bool enabled = wlr_scene_node_coords(&scene_buffer->node, &lx, &ly);
|
||||
|
||||
if (!wl_list_empty(&surface->surface->current.frame_callback_list) &&
|
||||
surface->buffer->primary_output != NULL && enabled) {
|
||||
wlr_output_schedule_frame(surface->buffer->primary_output->output);
|
||||
struct wlr_output *output = get_surface_frame_pacing_output(surface->surface);
|
||||
if (!wl_list_empty(&surface->surface->current.frame_callback_list) && output && enabled) {
|
||||
wlr_output_schedule_frame(output);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue