aports/testing/xdg-desktop-portal-cosmic/fix-build-persistmode.patch
2025-03-08 23:56:53 +00:00

36 lines
1.3 KiB
Diff

From 52c6877c04222da8408dd6c8c960edfbc6362c3f Mon Sep 17 00:00:00 2001
From: l-const <kostas.lampropoulos94@gmail.com>
Date: Fri, 21 Feb 2025 21:04:23 +0200
Subject: [PATCH] Make fedora build pass.
---
examples/screencast.rs | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/examples/screencast.rs b/examples/screencast.rs
index 5d7c350..ff40a21 100644
--- a/examples/screencast.rs
+++ b/examples/screencast.rs
@@ -2,8 +2,9 @@
// Test modifiers, when added to pipewire gstreamersrc:
// - https://gitlab.freedesktop.org/pipewire/pipewire/-/merge_requests/1881
+use ashpd::desktop::PersistMode;
use ashpd::{
- desktop::screencast::{CursorMode, PersistMode, Screencast, SourceType},
+ desktop::screencast::{CursorMode, Screencast, SourceType},
enumflags2::BitFlags,
};
use clap::Parser;
@@ -67,10 +68,7 @@ async fn main() -> anyhow::Result<()> {
PersistMode::DoNot,
)
.await?;
- let streams = screencast
- .start(&session, &ashpd::WindowIdentifier::default())
- .await?
- .response()?;
+ let streams = screencast.start(&session, None).await?.response()?;
println!("{} streams", streams.streams().len());
let stream = &streams.streams()[0];
let fd = screencast.open_pipe_wire_remote(&session).await?;