X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fcompositor.c;fp=src%2Fcompositor.c;h=bdff9ed77da24d8ac58f90eb4845a78f980192b4;hb=6366348eccec778f02061070d1334ea897d4f514;hp=18817028199981947cf46b63eb933c2418a67ef8;hpb=d2510f1e79e501a8e6aecb8058746a7456d1367e;p=src%2Fagl-compositor.git diff --git a/src/compositor.c b/src/compositor.c index 1881702..bdff9ed 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -103,6 +103,13 @@ ivi_init_parsed_options(struct weston_compositor *compositor) return config; } +static void +screenshot_allow_all(struct wl_listener *l, struct weston_output_capture_attempt *att) +{ + att->authorized = true; +} + + static void sigint_helper(int sig) { @@ -2237,8 +2244,11 @@ int wet_main(int argc, char *argv[], const struct weston_testsuite_data *test_da ivi_launch_shell_client(&ivi, "shell-client-ext", &ivi.shell_client_ext.client); - if (debug) - ivi_screenshooter_create(&ivi); + if (debug) { + weston_compositor_add_screenshot_authority(ivi.compositor, + &ivi.screenshot_auth, + screenshot_allow_all); + } ivi_agl_systemd_notify(&ivi); wl_display_run(display);