summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmre Ucan <eucan@de.adit-jv.com>2018-04-17 08:44:34 +0200
committerEmre Ucan <eucan@de.adit-jv.com>2018-04-17 08:44:34 +0200
commit1a011da600c0e10f29ac6bf45daacec78f8d3ba5 (patch)
treeb727e69069275f08e43219c92530ee6a99415e8e
parentba67d6abcf1e3e959ad7f51ba50f6fc864870680 (diff)
downloadwayland-ivi-extension-1a011da600c0e10f29ac6bf45daacec78f8d3ba5.tar.gz
ivi-controller: damage output before screenshot
we have to damage output otherwise it will not be repainted. weston_output_damage() calls weston_output_schedule_repaint. Therefore, we can remove it. Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
-rw-r--r--weston-ivi-shell/src/ivi-controller.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/weston-ivi-shell/src/ivi-controller.c b/weston-ivi-shell/src/ivi-controller.c
index a5c624d..d31ba45 100644
--- a/weston-ivi-shell/src/ivi-controller.c
+++ b/weston-ivi-shell/src/ivi-controller.c
@@ -1340,8 +1340,7 @@ controller_screen_screenshot(struct wl_client *client,
l->frame_listener.notify = controller_screenshot_notify;
wl_signal_add(&iviscrn->output->frame_signal, &l->frame_listener);
iviscrn->output->disable_planes++;
- weston_output_schedule_repaint(iviscrn->output);
- return;
+ weston_output_damage(iviscrn->output);
}
static void