Commit a0d9cc64 authored by marius vlad's avatar marius vlad

libweston/screnshooter: Fix weston screenshot event done if there's no client running

The 'done' event sent back to client with the weston screenshot interface
is not being sent if there is no damage on the plane. This patch (re-uses just
like recording part) weston_output_damage() to achieve that.

Otherwise the client will have to wait (and be blocked) until some
damage on the plane is being done.
Signed-off-by: marius vlad's avatarMarius Vlad <marius.vlad0@gmail.com>
parent d85fe29c
......@@ -204,7 +204,7 @@ weston_screenshooter_shoot(struct weston_output *output,
l->listener.notify = screenshooter_frame_notify;
wl_signal_add(&output->frame_signal, &l->listener);
output->disable_planes++;
weston_output_schedule_repaint(output);
weston_output_damage(output);
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment