Include virtual capture target in portal capture

This commit is contained in:
dec05eba
2024-07-15 23:17:00 +02:00
parent a3b773a963
commit 73146d8957
3 changed files with 3 additions and 3 deletions

View File

@@ -179,7 +179,7 @@ static bool gsr_capture_portal_setup_dbus(gsr_capture_portal *self) {
}
fprintf(stderr, "gsr info: gsr_capture_portal_setup_dbus: SelectSources\n");
if(!gsr_dbus_screencast_select_sources(&self->dbus, self->session_handle, GSR_PORTAL_CAPTURE_TYPE_MONITOR | GSR_PORTAL_CAPTURE_TYPE_WINDOW, self->params.record_cursor ? GSR_PORTAL_CURSOR_MODE_EMBEDDED : GSR_PORTAL_CURSOR_MODE_HIDDEN)) {
if(!gsr_dbus_screencast_select_sources(&self->dbus, self->session_handle, GSR_PORTAL_CAPTURE_TYPE_ALL, self->params.record_cursor ? GSR_PORTAL_CURSOR_MODE_EMBEDDED : GSR_PORTAL_CURSOR_MODE_HIDDEN)) {
fprintf(stderr, "gsr error: gsr_capture_portal_setup_dbus: SelectSources failed\n");
return false;
}