From a8e93ed90f68d8a13649a49527feb026e22bfdfa Mon Sep 17 00:00:00 2001 From: Marco Felsch Date: Mon, 9 Dec 2019 12:30:13 +0100 Subject: [PATCH] ivi-shell: add screenshot capability Various shells provide the functionality to take screenshots using the weston-screenshooter or a key combination. This is useful on the ivi-shell, too. Signed-off-by: Marco Felsch Signed-off-by: Michael Tretter --- clients/meson.build | 2 +- ivi-shell/ivi-shell.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/clients/meson.build b/clients/meson.build index 75b4121f..a9f9a398 100644 --- a/clients/meson.build +++ b/clients/meson.build @@ -374,7 +374,7 @@ if get_option('shell-desktop') env_modmap += 'weston-desktop-shell=@0@;'.format(exe_shell_desktop.full_path()) endif -if get_option('shell-desktop') or get_option('shell-fullscreen') or get_option('shell-kiosk') +if get_option('shell-desktop') or get_option('shell-fullscreen') or get_option('shell-kiosk') or get_option('shell-ivi') exe_shooter = executable( 'weston-screenshooter', 'screenshot.c', diff --git a/ivi-shell/ivi-shell.c b/ivi-shell/ivi-shell.c index 4a1b6c78..8f0bbf41 100644 --- a/ivi-shell/ivi-shell.c +++ b/ivi-shell/ivi-shell.c @@ -722,6 +722,9 @@ wet_shell_init(struct weston_compositor *compositor, goto err_desktop; ivi_layout_init_with_compositor(compositor); + + screenshooter_create(compositor); + shell_add_bindings(compositor, shell); return IVI_SUCCEEDED;