From a0d9cc64f66f5d2e7a70db4624bcdc52e67cedfc Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Fri, 23 Nov 2018 12:04:27 +0200 Subject: [PATCH] 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 --- libweston/screenshooter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libweston/screenshooter.c b/libweston/screenshooter.c index f4e3f4def..2bde4f1df 100644 --- a/libweston/screenshooter.c +++ b/libweston/screenshooter.c @@ -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; }