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 <m.felsch@pengutronix.de>
Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
This commit is contained in:
Marco Felsch 2019-12-09 12:30:13 +01:00 committed by Marius Vlad
parent 6bcfc43a88
commit a8e93ed90f
2 changed files with 4 additions and 1 deletions

View File

@ -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',

View File

@ -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;