Add post_frame event to wlr_output, use wlr_drm_plane_make_current in wlr_drm_output_read_pixels

This commit is contained in:
emersion 2017-09-09 11:32:03 +02:00
parent 35f9700251
commit d0db6a80ab
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
4 changed files with 7 additions and 4 deletions

View file

@ -105,6 +105,7 @@ void wlr_output_init(struct wlr_output *output,
output->transform = WL_OUTPUT_TRANSFORM_NORMAL;
output->scale = 1;
wl_signal_init(&output->events.frame);
wl_signal_init(&output->events.post_frame);
wl_signal_init(&output->events.resolution);
wl_signal_init(&output->events.destroy);
}

View file

@ -59,7 +59,7 @@ static void screenshooter_shoot(struct wl_client *client,
state->output = output;
state->screenshot = screenshot;
state->frame_listener.notify = output_frame_notify;
wl_signal_add(&output->events.frame, &state->frame_listener);
wl_signal_add(&output->events.post_frame, &state->frame_listener);
}
static struct orbital_screenshooter_interface screenshooter_impl = {