Start capture on output switch iff clients are connected

Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
pull/195/head
Jim Ramsay 2022-11-25 08:10:15 -05:00 committed by Andri Yngvason
parent 19e3d78d78
commit 80efc9d487
1 changed files with 2 additions and 1 deletions

View File

@ -1054,7 +1054,8 @@ void switch_to_output(struct wayvnc* self, struct output* output)
screencopy_stop(&self->screencopy);
set_selected_output(self, output);
reinitialise_pointers(self);
wayvnc_start_capture_immediate(self);
if (self->nr_clients > 0)
wayvnc_start_capture_immediate(self);
}
void switch_to_next_output(struct wayvnc* self)