Skip to content

Commit

Permalink
Patch: Embed cursor in PipeWire desktop capturer.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Jun 17, 2021
1 parent b2e0a59 commit f03ef05
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/modules/desktop_capture/linux/base_capturer_pipewire.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1025,6 +1025,9 @@ void BaseCapturerPipeWire::SourcesRequest() {
// We don't want to allow selection of multiple sources.
g_variant_builder_add(&builder, "{sv}", "multiple",
g_variant_new_boolean(false));
// Embedded cursor.
g_variant_builder_add(&builder, "{sv}", "cursor_mode",
g_variant_new_uint32(2));
variant_string = g_strdup_printf("webrtc%d", g_random_int_range(0, G_MAXINT));
g_variant_builder_add(&builder, "{sv}", "handle_token",
g_variant_new_string(variant_string.get()));
Expand Down

0 comments on commit f03ef05

Please sign in to comment.