mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-01-21 11:40:30 +01:00
Merge branch 'copy-capture-damage-only' into 'master'
ext_image_copy_capture_v1: Only render scene source on damage See merge request wlroots/wlroots!5240
This commit is contained in:
commit
4ed052a4ab
1 changed files with 5 additions and 1 deletions
|
|
@ -281,7 +281,11 @@ static void source_handle_output_frame(struct wl_listener *listener, void *data)
|
|||
return;
|
||||
}
|
||||
|
||||
if (!wlr_scene_output_needs_frame(source->scene_output)) {
|
||||
if (pixman_region32_empty(&source->scene_output->pending_commit_damage)) {
|
||||
// We do not need to render but frame callbacks still need to be sent
|
||||
struct timespec now;
|
||||
clock_gettime(CLOCK_MONOTONIC, &now);
|
||||
wlr_scene_output_send_frame_done(source->scene_output, &now);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue