Skip to content
Snippets Groups Projects

screen-share: Add option to start screen sharing on weston startup

Merged Marek Vasut requested to merge marex/weston:main/screen-share/start-on-startup into main
All threads resolved!
2 files
+ 11
0
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 10
0
@@ -1165,6 +1165,7 @@ wet_module_init(struct weston_compositor *compositor,
int *argc, char *argv[])
{
struct screen_share *ss;
struct weston_output *output;
struct weston_config *config;
struct weston_config_section *section;
@@ -1182,5 +1183,14 @@ wet_module_init(struct weston_compositor *compositor,
weston_compositor_add_key_binding(compositor, KEY_S,
MODIFIER_CTRL | MODIFIER_ALT,
share_output_binding, ss);
if (weston_config_section_get_bool(section, "start-on-startup",
&start_on_startup, false) == 0) {
wl_list_for_each(output, &compositor->output_list, link) {
+8
weston_output_share(output, ss->command);
break;
}
}
return 0;
}
Loading